Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!zaphod.mps.ohio-state.edu!samsung!emory!gatech!prism!roy From: roy@prism.gatech.EDU (Roy Mongiovi) Newsgroups: comp.unix.admin Subject: Re: Help - we lost all our files! Message-ID: <32011@hydra.gatech.EDU> Date: 30 Jun 91 03:06:36 GMT References: <1347@escob1.UUCP> <8928@awdprime.UUCP> <3792@charon.cwi.nl> Organization: Georgia Institute of Technology Lines: 16 In article <3792@charon.cwi.nl>, dik@cwi.nl (Dik T. Winter) writes: > due to the way xargs handles its input it is not suitable to process the > output from find. I run the output of find through the following sed before piping it to xargs: sed -e "/'/s/'/'\\\\''/g" -e "s/^/'/" -e "s/$/'/" This puts single quotes around each file name, and also handles file names containing single quotes. Is this acceptable, or is there a way to defeat this too? -- Roy J. Mongiovi Systems Support Specialist Office of Computing Services Georgia Institute of Technology Atlanta, Georgia 30332-0275 (404) 894-4660 uucp: ...!{allegra,amd,hplabs,ut-ngp}!gatech!prism!roy ARPA: roy@prism.gatech.edu