Fool's guide to FIND

Carsten Gehrke carsten at rollinghorse.com
Thu Nov 21 10:07:56 PST 2002


At 09:04 21-11-02, you wrote:


> > I have a very simple task: I want to recursively find files
> > by name (e.g.) *.pdf
>
>Stuff like this is a snap; recurisve searching is default.
>
>syntax is find <dirToStartIn> -<whatType> <searchString>
>
>so to find somthing *named* *.pdf searching the whole machine you do
>
>find / -name "*.pdf"
>
>Note the quotes around your string arn't always neccecary, but they will
>keep you out of trouble!
>
>For real fun, try thinking of ways to recursivly search for files
>without using find.  hint, try using combinations of du, awk, and grep.

ls -R *.pdf

comes to mind.  But find has a lot more options (select on permissions, etc.)


-- 
Carsten Gehrke     LFS No.: 190    using Linux since kernel 0.98
carsten at gehrke.org

-- 
Unsubscribe: send email to listar at linuxfromscratch.org
and put 'unsubscribe blfs-support' in the subject header of the message



More information about the blfs-support mailing list