0

I am often using grep -R on an entire directory tree to find all files that contains a specified word. I wonder if there is a tool that makes the whole operation much faster, maybe via hashing? (Unix systems!). Even better if it exists to optimize regular expressions matching.

thanks! -Francesco

fstab
  • 111
  • 3

1 Answers1

0

I don't know of any tool that does this, other than grep or find. You might gain speed using find, possibly in conjuction with xargs, to search only those kinds of files that are of interest (skipping binary files, for example.) This would be my next step, run "time" on your grep, and then run "time" on your find command, and compare results.

Michael Martinez
  • 2,645
  • 3
  • 24
  • 35