On Mon, Feb 12, 2007 at 09:17:59PM +0200, Maxim Veksler wrote:
> On 2/12/07, Gilboa Davara <[EMAIL PROTECTED]> wrote:
> >On Mon, 2007-02-12 at 15:56 +0200, Maxim Veksler wrote:
> >> Hi,
> >>
> >> Someone at work told me that doing "du -a <DIR>|grep <FILE>" is faster
> >> then "find <DIR>|grep <FILE>". I've measured, it doesn't looks quite
> >> so. It did OTOH got me wondering what's the quickest way to answer if
> >> file existed in a hierarchy of directories.
> >
> >What about $ file -name <FILE> ?
> >
> 
> Real situation: I've just done a major build which created 5th level
> directories hierarchy (debug/Main/Engine/Simple/he). Now I wish to run
> some quick shell test to see if anywhere inside all of this directory
> jungle a file named libHelpTest.a was build.

If you're using zsh, you only need
$ ls **/libHelpTest.a

(I wonder whether Nadav has already sent this answer to the list...)

-- 
Dan Kenigsberg        http://www.cs.technion.ac.il/~danken        ICQ 162180901

=================================================================
To unsubscribe, send mail to [EMAIL PROTECTED] with
the word "unsubscribe" in the message body, e.g., run the command
echo unsubscribe | mail [EMAIL PROTECTED]

Reply via email to