Subject: Re: find and list only files
From: Mike Tibor (tibor@lib.uaa.alaska.edu)
Date: Fri Jan 17 2003 - 13:10:26 AKST
On Fri, 17 Jan 2003 lee@afabco.com wrote:
>
> What's the find syntax to search a tree but list only the files (along with
> the full path) found? Not the empty subdirs, just the full filenames.
find [full path] -type f
For example, listing all files under /usr/local would be:
find /usr/local -type f
If you do something like:
find . type f
you would get a listing of all files at or below the current directory
structure, but you wouldn't get full pathnames.
Mike
-- Mike Tibor Univ. of Alaska Anchorage (907) 786-1001 voice Network Technician Consortium Library (907) 786-6050 fax tibor@lib.uaa.alaska.edu http://www.lib.uaa.alaska.edu/~tibor/ http://www.lib.uaa.alaska.edu/~tibor/pgpkey for PGP public key--------- To unsubscribe, send email to <aklug-request@aklug.org> with 'unsubscribe' in the message body.
This archive was generated by hypermail 2a23 : Fri Jan 17 2003 - 13:10:29 AKST