Advertisement
Guest User

Untitled

a guest
Jan 30th, 2015
155
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.28 KB | None | 0 0
  1. #!/bin/bash
  2.  
  3. while IFS=, read -r from to
  4. do
  5. echo copying from $from to $to
  6. cp -vufr "$from" "$to" 2>> ~/cperrors.txt
  7. done <<EOF
  8. /home/myuser/important_files/,/media/myuser/externalHD/backup/important_files
  9. /home/myuser/another_dir/,/media/myuser/externalHD/backup/another_dir
  10. EOF
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement