Created
September 3, 2012 20:10
-
-
Save ryansb/3613000 to your computer and use it in GitHub Desktop.
Copy SJ's magic to flash drives
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
find /run/media/ryansb -maxdepth 1 -type d | sed 1d |while read line | |
do | |
echo "$line" | |
rm -r $line/* | |
cp -r /home/ryansb/IGIC/*.pdf $line | |
chmod 777 $line/* | |
umount $line | |
done | |
echo "Done!" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment