From owner-freebsd-questions Wed Dec 29 4:11:19 1999 Delivered-To: freebsd-questions@freebsd.org Received: from mail2.gmx.net (mail2.gmx.net [194.221.183.62]) by hub.freebsd.org (Postfix) with SMTP id 97F6D14E87 for ; Wed, 29 Dec 1999 04:11:16 -0800 (PST) (envelope-from michael.duemesnil@gmx.de) Received: (qmail 16632 invoked by uid 0); 29 Dec 1999 12:10:36 -0000 Received: from unknown (HELO rantw4010) (62.144.6.18) by mail2.gmx.net with SMTP; 29 Dec 1999 12:10:36 -0000 Message-ID: <006d01bf51f5$b62c09c0$0f02010a@ratingen.twinsoft.de> From: "Michael Duemesnil" To: References: <19991228195603.2204.qmail@web115.yahoomail.com> Subject: Re: Is there a way to do this using ls command ? Date: Wed, 29 Dec 1999 13:10:34 +0100 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 5.00.2314.1300 X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2314.1300 Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG > 1. don't include, or otherwise strip, all entries > that are NOT directories, so as NOT to save them > in the generated output file > for example ls -F | grep / > (but this will output a trailing / after each and > every directory name), so how to strip this > can this be done using sed, or something else ? lookup: man find (esp. "-type d" - option) > 2. Remove certain directory entries form the > list, for example CVS/ , pkg/ > before saving the final output to the file. again: find! You can build boolean expressions for search criteria. (look for "-a", "-o" and "!") > 3. the list must be sequential listing one entry > on a seperate line. (like issuing simple ls) that's default To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message