Date: Wed, 29 Dec 1999 13:10:34 +0100 From: "Michael Duemesnil" <michael.duemesnil@gmx.de> To: <FreeBSD-Questions@FreeBSD.org> Subject: Re: Is there a way to do this using ls command ? Message-ID: <006d01bf51f5$b62c09c0$0f02010a@ratingen.twinsoft.de> References: <19991228195603.2204.qmail@web115.yahoomail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
> 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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?006d01bf51f5$b62c09c0$0f02010a>
