recursive grep

Steve Hayman sahayman at iuvax.cs.indiana.edu
Tue Sep 5 09:02:04 AEST 1989


> Much discussion of problems with filenames containing embedded
> newlines or spaces.


How about an option to "find" or maybe a new predicate so that it
would separate filenames in its output not by newline but by
a '\0' character, and then a corresponding option for "xargs"
to tell it that its input files are separated by '\0' instead
of '\n'.   (since '\0' and '/'  are the only characters that
can't appear in a valid pathname, and find already outputs slashes.)

If you wanted a really secure find | xargs combo, perhaps this
would help.



More information about the Comp.unix.wizards mailing list