I'm looking at excluding files from a directory to be copied to another
disk.

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?



Stu



-- 
SLUG - Sydney Linux User's Group - http://slug.org.au/
More Info: http://lists.slug.org.au/listinfo/slug

Reply via email to