Help - we lost all our files!
Roy Mongiovi
roy at prism.gatech.EDU
Sun Jun 30 13:06:36 AEST 1991
In article <3792 at charon.cwi.nl>, dik at 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 at prism.gatech.edu
More information about the Comp.unix.admin
mailing list