Path: utzoo!utgpu!news-server.csri.toronto.edu!rutgers!usc!zaphod.mps.ohio-state.edu!wuarchive!uunet!dg-rtp!dgcad!aeras!sun!slovax!lm From: lm@slovax.Sun.COM (Larry McVoy) Newsgroups: comp.unix.misc Subject: Re: Fast file scan Message-ID: <143198@sun.Eng.Sun.COM> Date: 1 Oct 90 00:48:50 GMT References: <299@lysator.liu.se> Sender: news@sun.Eng.Sun.COM Reply-To: lm@sun.UUCP (Larry McVoy) Distribution: comp Organization: Sun Microsystems, Mountain View Lines: 14 In article <299@lysator.liu.se> pen@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@sun.com