Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

Bash copy help

Name: Anonymous 2009-04-20 4:39

I have a file of paths, separated with newlines, and I want to copy every file in that list to a specified location, how do I do that?

Name: Anonymous 2009-04-20 8:53

Any time you're using xargs I would strongly suggest using -0 to avoid surprises. For example if you have a file with ' in the name it'll screw things up.

That is, instead of:
xargs whatever < file
use:
tr \\n \\0 < file | xargs -0 whatever
and your xargs will behave itself.

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List