29 Feb
2004
29 Feb
'04
01:56
Adding /dev/null below so that grep outputs the filename(s) it found the pattern match in. Without it, grep will only print out the line containing the match. Sorry about the original mail :-) BR Brett Russ wrote:
N1UAN Bob wrote:
Wonder if someone could give me the way to grep for an word within all files on my system like the filename would be XXXX.XX
find / -type f -iname '????\.??' | xargs grep -i 'word' /dev/null
will do a case insensitive file match for all files with 4 chars followed by a literal '.' followed by 2 chars then do a case insensitive search for 'word' on those files.
HTH, BR