Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!iuvax!sahayman From: sahayman@iuvax.cs.indiana.edu (Steve Hayman) Newsgroups: comp.unix.wizards Subject: Re: recursive grep Message-ID: <25420@iuvax.cs.indiana.edu> Date: 4 Sep 89 23:02:04 GMT References: <13710@polyslo.calpoly.edu> <144000002@cdp> <2390@auspex.auspex.com> <9408@chinet.chi.il.us> <191@titania.warwick.ac.uk> <9440@chinet.chi.il.us> Reply-To: sahayman@iuvax.cs.indiana.edu (Steve Hayman) Organization: Computer Science Department, Indiana University Lines: 14 > 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.