Command line tool to find(1) or grep(1) faster?
I frequently search through certain big directories, and it takes a long time. Surely there's something that makes this faster? Any suggestions?
|
Quote:
Code:
$ locate "/big/dir/files*" |
find and locate typically are used to look for files. grep is used to look for words in a file--or in a data stream. Obviously, the data stream can be generated by doing a list of files---as in ls /dirname/*|grep keyword.
Using grep as a general tool to find files does not seem like the best choice. |
All times are GMT -5. The time now is 01:26 PM. |