Advertisement
Guest User

Untitled

a guest
Jun 16th, 2019
58
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.38 KB | None | 0 0
  1. cp `cat list.txt` new-folder/
  2.  
  3. cpio -pvdm /destination <list.txt
  4.  
  5. tar -cf - -F list.txt | tar -C /destination -x
  6.  
  7. while read -r line
  8. do
  9. cp "$line" /destination
  10. done <"file"
  11.  
  12. dest="<destination folder>" #keep the quotes
  13. for i in `cat < list.txt` #loop each line of list.txt
  14. do
  15. cp $i $dest #in each loop copy $i, e/a line of list.txt to $dest
  16. echo "Done."
  17. done
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement