The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Dummies Questions & Answers
Google UNIX.COM



View Single Post in UNIX Forums - Click on the Thread or Permalink to View Entire Thread -->
  #4 (permalink)  
Old 06-28-2005
rahul123_libra rahul123_libra is offline
Registered User
 

Join Date: May 2005
Posts: 46
Smile Use find instead

Hello

grep will take time because as u said there r many sub-directoires under the /vol directory .

It hangs because u have not specified any dir from which it would read
so it waits for some input from the standard input .

U can reduce the access time by giving a better regex like batch* or *batch .

Use find instead

find /vol/ -name '*batch*' -print


cheers
Reply With Quote