On Thu, 23 Sep 2004 15:46:26 +0200, Cyrille Lefevre <root_at_gits.dyndns.org> wrote: > how about grep -r ou find | xargs grep ! How does that work, out of curiosity? You can use the -exec feature of 'find' other wise - find . -type f -exec grep "something" {} /dev/null \; -- the /dev/null is, according to a friend, "to provide grep with more than one input file, so that includes the file name in any matches. Didn't use it before. Add -depth or -maxdepth according to how many directories you want to trawl through. -- JuhaReceived on Thu Sep 23 2004 - 17:35:05 UTC
This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:38:13 UTC