Fast file scan
J.T. Conklin
jtc at van-bc.wimsey.bc.ca
Fri Sep 28 05:15:07 AEST 1990
In article <299 at lysator.liu.se> pen at lysator.liu.se (Peter Eriksson) writes:
>I`d like to know how to scan all files in a directory (and it's sub-
>directories) for a specific string (without regular expressions) as fast
>as possible with standard Unix tools and/or some special programs.
>
>(Using the find+fgrep combination is slooooow....)
I have found that find+xargs+fgrep to be quite reasonable when I need
to perform such a task as yours. Are you possibly ommiting the xargs,
thus forcing find to exec a fgrep for each file?
--jtc
--
J.T. Conklin UniFax Communications Inc.
...!{uunet,ubc-cs}!van-bc!jtc, jtc at wimsey.bc.ca
More information about the Comp.unix.misc
mailing list