Path: utzoo!attcan!uunet!pyrdc!pyrnj!bartal!monymsys!sonyd1.Broadcast.Sony.COM!blilly.UUCP!balilly.UUCP!bruce From: bruce@balilly.UUCP (Bruce Lilly) Newsgroups: comp.unix.misc Subject: Re: Fast file scan Message-ID: <1990Oct2.041451.3929@blilly.UUCP> Date: 2 Oct 90 04:14:51 GMT References: <299@lysator.liu.se> <143198@sun.Eng.Sun.COM> Sender: news@blilly.UUCP (News Administrator) Organization: Bruce Lilly, Flushing, NY Lines: 23 In article <143198@sun.Eng.Sun.COM> lm@sun.UUCP (Larry McVoy) writes: >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....) Depends on how you do it. Try: find . -print | xargs fgrep string >> >>Any ideas? > >I would probably use ftw(3). I've found it a useful tool. I believe find uses ftw. -- Bruce Lilly blilly!balilly!bruce@sonyd1.Broadcast.Sony.COM