Skip to content

Instantly share code, notes, and snippets.

@eduo
Created October 20, 2013 19:36
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save eduo/7074209 to your computer and use it in GitHub Desktop.
Save eduo/7074209 to your computer and use it in GitHub Desktop.
Check Serie Folders for Renaming
#!/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