Thursday, February 17, 2011

rename subtitle files easily

here's how to rename subtitle files easily, so that they can have the same names as the video files.

for i in `ls *.srt|awk -F . '{print $1}'`;do j=$(printf %02d $i);mv $i.srt "The Office-S06E$j.srt";done

Change the name of the series to the appropriate name