Unix Shell - Re: How do I find file "findme" in tree "bigtree" searching only s

This is Interesting: Free IT Magazines  
Home > Archive > Unix Shell > August 2007 > Re: How do I find file "findme" in tree "bigtree" searching only s





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author Re: How do I find file "findme" in tree "bigtree" searching only s
James Michael Fultz

2007-08-21, 7:24 pm

* Chris Allen <ca.allen@gmail.com>:
> How do I find file "findme" in tree "bigtree" searching only
> subdirectories named "in_here"? I've been pulling my hair out for an
> hour or so trying to figure out how to do this with the find command.

[ ... ]

$ find bigtree -print
bigtree
bigtree/not_here
bigtree/not_here/findme
bigtree/in_here
bigtree/in_here/findme
bigtree/findme

$ find bigtree -wholename '*/in_here/*' -name findme -print
bigtree/in_here/findme

--
James Michael Fultz <xyzzy@sent.as.invalid>
Remove this part when replying ^^^^^^^^
Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2009 webservertalk.com