$ rename -v 's/.*[s,S](\d{2}).*[e,E](\d{2}).*\.avi/'SHOW NAME'\ S$1E$2.avi/' poorly.named.file.s01e01.avi
Replace 'SHOW NAME' with the name of the TV show.
Add -n to test the command without renaming files.
Check the 'sample output'.
by David Winterbottom (codeinthehole.com)
0sem comentários ainda