Created
February 23, 2015 19:38
-
-
Save rndD/6223ea11b928fef39662 to your computer and use it in GitHub Desktop.
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/bash | |
set -e | |
FROM=/home/media/Downloads/complete | |
TO=/home/media/Video | |
for file in $FROM/*; do | |
echo "Where move file :$file" | |
select item in Shows Films Skip; do | |
case "$item" in | |
Films) mv "$file" $TO/Films && break;; | |
Shows) mv "$file" $TO/Shows && break;; | |
*) break;; | |
esac | |
done | |
done | |
echo "$FROM:" | |
ls $FROM |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment