Hi, Use shell globbing, like `echo *'
Gilboa Davara 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. >> >> Assuming I'm not interested in any information besides the answer if >> file existing or not. I would only need to access the directory >> listing and not the inode of each file, right? Is there some utility >> that can do this very simple search efficiently? >> > > What about $ file -name <FILE> ? > > - Gilboa > > > ================================================================= > 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] > -- Moshe Gorohovsky A6 CC A7 E1 C2 BD 8C 1B 30 8E A4 C3 4C 09 88 47 Tk Open Systems Ltd. ----------------------------------------------------------------------- - tel: +972.2.679.5364, http://www.tkos.co.il - ================================================================= 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]