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
|