The UNIX and Linux Forums  
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.

Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Dummies Questions & Answers
.
google unix.com




View Single Post in the UNIX and Linux 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