12 lines
257 B
Bash
Executable File
12 lines
257 B
Bash
Executable File
#!/bin/bash
|
|
|
|
cd test
|
|
for f in {01..10} ; do mkdir "Season $f" && for g in {01..30} ; do touch "Season $f/S${f}E$g.mkv" ; done ; done
|
|
echo 1 | ../tv_rename -s simpsons -c -t
|
|
ls Season* > names
|
|
if [ -z "$(diff names compare)" ] ; then
|
|
exit 0
|
|
else
|
|
exit 1
|
|
fi
|