2014-01-29, 19:26
Just tried the script. Seems it doesn't handle spaces in directory names well:
I tried changing line 6 to read:
But that didn't work either. Any thoughts?
Code:
root@debian# \ls
Ask This Old House Small Soldiers livetvbuffer renamer.sh
( /mnt/data/data/tvrecordings )
root@debian# ls
Ask This Old House Small Soldiers livetvbuffer renamer.sh
( /mnt/data/data/tvrecordings )
root@debian# ./renamer.sh
changing directory to Ask This Old House/
./renamer.sh: line 6: cd: Ask: No such file or directory
Filname not correct format - skipping
0 files renamed
changing directory to Small Soldiers/
./renamer.sh: line 6: cd: Small: No such file or directory
Filname not correct format - skipping
0 files renamed
changing directory to livetvbuffer/
./renamer.sh: line 6: cd: livetvbuffer/: No such file or directory
Unable to find show-id. Exiting !!
I tried changing line 6 to read:
Code:
cd "$file"
But that didn't work either. Any thoughts?