Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/bash
- for i in $(ls *.zip)
- do
- rep=$(echo $i | cut -d. -f1)
- unzip $i -d $rep
- echo "copying $rep on the nas ..."
- scp -r "$rep" admine@192.168.1.107:Drive/Moments/Gphotos/
- echo "copy of $rep finished"
- mv $i .$i
- rm -rf $rep
- done
Add Comment
Please, Sign In to add comment