Created
July 29, 2010 01:06
-
-
Save phmongeau/496927 to your computer and use it in GitHub Desktop.
A script to sort files in my download folder
This file contains 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
#!/bin/sh | |
cd ~/Downloads/ | |
#Images: | |
mv *.png IMG/ | |
mv *.PNG IMG/ | |
mv *.jpg IMG/ | |
mv *.JPG IMG/ | |
mv *.tiff IMG/ | |
mv *.gif IMG/ | |
mv *.gif IMG/ | |
#doc | |
mv *.pdf DOC/ | |
mv *.txt DOC/ | |
mv *.doc DOC/ | |
mv *.epub DOC/ | |
#music | |
mv *.mp3 MP3/ | |
mv *.ogg MP3/ | |
#App | |
mv *.app APP/ | |
#installer | |
mv *.dmg DMG/ | |
mv *.pkg DGM/ | |
#archives | |
mv *.zip ZIP/ | |
mv *.gzip ZIP/ | |
mv *.rar ZIP/ | |
mv *.gz ZIP/ | |
cd - |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment