[vdr] A script for renaming recording directories (regular ->
"VFAT=1" format)
Udo Richter
udo_richter at gmx.de
Thu Mar 30 15:51:00 CEST 2006
Esa Viitala wrote:
> Has anyone made a script to automatically go through video directory
> and rename all the recordings to format which is also produced when
> vdr is using VFAT "support"?
Try the attached one, should do the trick.
Cheers,
Udo
-------------- next part --------------
#!/bin/bash
for i in `find -type d -name "[0-9][0-9][0-9][0-9]-[0-9][0-9]-[0-9][0-9].[0-9][0-9]:[0-9][0-9].[0-9][0-9].[0-9][0-9].rec"` ; do
path=${i%/*}
name=${i##*/}
newname=${name/:/.}
mv -iv "$path/$name" "$path/$newname"
done
More information about the vdr
mailing list