Subj : Re: grep question To : comp.os.linux From : Sybren Stuvel Date : Tue Aug 31 2004 02:51 pm staale enlightened us with: > If you have spaces (or other *nix unfrendly char) in file or folder > names you better add -print0 and --null like this: > > find / -type f -print0|xargs --null grep "expression" or: find / -type f | while read filename; do grep -l "expr" $filename; done The -l option of grep is useful, otherwise it won't list filenames, since it is scanning one file at the time. Might be useful to know in which file the expression is found. Sybren -- The problem with the world is stupidity. Not saying there should be a capital punishment for stupidity, but why don't we just take the safety labels off of everything and let the problem solve itself? .