Created
October 20, 2013 19:36
-
-
Save eduo/7074209 to your computer and use it in GitHub Desktop.
Check Serie Folders for Renaming
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
#!/bin/bash | |
# | |
cd /Volumes/TV-MOVIES/TV/ | |
#find . -name ".?*" -print | while read line | |
#do | |
#rm "$line" | |
#echo "${line}" | |
#done | |
# find `pwd` -type d -newermt '1 day ago' -name "*x" -a | sort > ~/series | |
cd ~ | |
echo "Finding directories..." | |
find /Volumes/TV-MOVIES/TV/ -type d -newermt '1 day ago' -name "*x" -a | sort > ~/series | |
echo "Start renaming..." | |
cat series | while read line | |
do | |
cd "$line" | |
~/tvrenamer.pl --unattended | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment