On Wed, 28 May 2003 23:18, you wrote: > The others have mentioned using "grep" or "find" and "grep". I'd suggest > using "fgrep" instead if you are not doing a "regular expression" search. > It is just a bit faster. Perhaps not significantly, but I'm too used to > cycles being expensive and shared to not use the slightly more efficient > when it is not really difficult.
I generally find /etc -type f -print0 | xargs -0 grep 'what I want' This runs grep as few times as possible (except for using --recursive, which I reckon is a Johnny-come-lately option). Simplicity aside, I doubt there's much to choose between find and "grep --recursive" except flexibility, and that the find approach applies equally to other commands. -- Cheers John Summerfield Microsoft's most solid OS: http://www.geocities.com/rcwoolley/ Join the "Linux Support by Small Businesses" list at http://mail.computerdatasafe.com.au/mailman/listinfo/lssb
