I've little issues trying to change the name of several amount file names using rename command.
I have 1 main directoy, and so many others inside, after this, the whole content are .wav files.
/rec/101/101-27022018-01:00:09-M00.wav
I want to change the 'hour' of the file;
101-27022018-01:00:09-M00.wav
Using the same date as reference
101-27022018-01:00:09-M00.wav
I've tried something like this:
rename 's/27022018-01/27022018-08/' *.wav -v -n
The question is, what if I want to change the name of all those files inside of all those directories? How it would be?
101-270265-02:00:09-M00.wav
? What if a file is101-270218-15:00:09-M00.wav
, should it become101-270209-09:00:08-M00.wav
, or101-270209-18:00:09-M00.wav
, or something else? Please [edit] your question and clarify exactly how you need the files to be renamed. – terdon Feb 27 '18 at 21:24