<quote who="Stuart Guthrie">
> I cannot work out how to pipe the list of files into a cp command.
>
> eg
>
> find / -name 'fred*.xml' | cp - /home/fred/fredbackup
>
> bad example but the gist is the the - is a placeholder for the piped
> list of file names. Is there an easy way to do this with some obscure
> linux/unix syntax {}/\@ perhaps?
Use xargs(1) or find's -exec parameter (xargs will be faster, but is not
always appropriate, this case is a good example of where you have to fart
around to get xargs to do the right thing).
- Jeff
--
GU4DEC: June 16th-18th in Dublin, Ireland http://www.guadec.org/
"It's only ironic because it's true." - Reflexive irony, overheard
--
SLUG - Sydney Linux User's Group - http://slug.org.au/
More Info: http://lists.slug.org.au/listinfo/slug