Fast file scan

Larry McVoy lm at slovax.Sun.COM
Mon Oct 1 10:48:50 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.
>
>(I've written such a program, and would like to compare my implementation
>of it with others.)
>
>(Using the find+fgrep combination is slooooow....)
>
>Any ideas?

I would probably use ftw(3).  I've found it a useful tool.  
---
Larry McVoy, Sun Microsystems     (415) 336-7627       ...!sun!lm or lm at sun.com



More information about the Comp.unix.misc mailing list