bash find grep couple alternative
Hello,
Since some time ago I've found myself using prolifically the common combination of commands find-grep to find files matching a certain regex pattern. And I wander if there is faster alternative to this archetype. Maybe there's a tool that could build on some sort of index that allows to improve performance over successive searches. |
After a while I've found that command "locate" seemed to do what I needed.
|
Are you using grep on the file names or the files' contents?
|
Catkin thanks for replying. By the way I use the find in the following manner,
find . -type f -name "*.txt" -exec grep "regex" {} \; |
All times are GMT -5. The time now is 01:54 PM. |