Path: utzoo!utgpu!watmath!att!dptg!rutgers!cs.utexas.edu!uunet!mcsun!ukc!warwick!cudcv From: cudcv@warwick.ac.uk (Rob McMahon) Newsgroups: comp.unix.wizards Subject: Re: recursive grep Message-ID: <191@titania.warwick.ac.uk> Date: 30 Aug 89 17:16:17 GMT References: <13710@polyslo.calpoly.edu> <144000002@cdp> <2390@auspex.auspex.com> <9408@chinet.chi.il.us> Reply-To: cudcv@warwick.ac.uk (Rob McMahon) Organization: Computing Services, Warwick University, UK Lines: 18 Re: `find ... -print | xargs' and filenames with spaces/newlines. In article <9408@chinet.chi.il.us> les@chinet.chi.il.us (Leslie Mikesell) writes: >Well, how would you go about parsing filenames out of a list if you can't use >spaces or newlines as the delimiters? Spaces should be no problem. Find prints it's filenames separated by newlines, and xargs should have an option which means take each line of input literally as a single argument, *not* ignoring spaces anywhere (in fact I think this should be the default, how often do you use xargs with more than one argument per line ?). It would be useful if find quoted each newline in a filename with a backslash. Rob -- UUCP: ...!mcvax!ukc!warwick!cudcv PHONE: +44 203 523037 JANET: cudcv@uk.ac.warwick ARPA: cudcv@warwick.ac.uk Rob McMahon, Computing Services, Warwick University, Coventry CV4 7AL, England