Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/usr/bin/env bash
- # create folders if they don't exist
- mkdir -p ./images
- mkdir -p ./music
- mkdir -p ./videos
- # move files to their desired folders
- # silence errors if wildcard does not match any files
- mv *.mp3 ./music 2> /dev/null
- mv *.flac ./music 2> /dev/null
- mv *.jpg ./images 2> /dev/null
- mv *.png ./images 2> /dev/null
- mv *.mov ./videos 2> /dev/null
- mv *.avi ./videos 2> /dev/null
- rm *.log 2> /dev/null
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement