Saravana's Musings
Monday, October 17, 2016
copy list of files to a directory
copy a list of files mentioned in a text file into a directory.
cat /tmp/test.txt | xargs -I % cp % /tmp/to_copy/
Here:
test.txt contains list of files to be copied.
/tmp/to_copy/ is the destination folder
Newer Posts
Older Posts
Home
Subscribe to:
Posts (Atom)