Path: utzoo!attcan!uunet!van-bc!jtc From: jtc@van-bc.wimsey.bc.ca (J.T. Conklin) Newsgroups: comp.unix.misc Subject: Re: Fast file scan Message-ID: <2165@van-bc.wimsey.bc.ca> Date: 27 Sep 90 19:15:07 GMT References: <299@lysator.liu.se> Distribution: comp Organization: UniFax Communications Inc., Vancouver, B.C., Canada Lines: 17 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. > >(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@wimsey.bc.ca