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"?
Esa Viitala wrote:
Try the attached one, should do the trick.
Cheers,
Udo
#!/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