I have a directory structure like this:
./BBC_english/ 2017-09-19.20.00.3-0.rec/00001.mpeg 2017-09-19.21.00.3-0.rec/00001.mpeg 2017-09-19.22.00.3-0.rec/00001.mpeg 2017-09-19.23.00.3-0.rec/00001.mpeg
And I need to rename the
00001.mpeg as the parent folders like this for every folder in ./ I need the date of day and time of recording in this format for example - I don't need
2017 in the new file names
And in the end I need to move all renamed mpeg files to a new path like this :
./newpath/ BBC_english__09-19__20.00.mpeg BBC_english__09-19__21.00.mpeg BBC_english__09-19__22.00.mpeg BBC_english__09-19__23.00.mpeg
First of all I use Fedora 20 (I know here is Ubuntu forum) and when I execute
mv command it does not support
-v option and only have this options:
-f -i -n
And you should know in the source path my Video recorder make new file every 1 hour.
So I need a recursive script to do that for all files during source folder only for .mpeg file (I will use the script after that worked for me in cron) but none of scripts you send here works for me by now.