I need to rename multiple files, and some tutorials shows that the command
rename is the best option instead of just use
mv for each file.
But then I have these files:
ReconhecimentoImagens2021-10-18--2020-2.mp4 ReconhecimentoImagens2021-11-01--2020-2.mp4 ReconhecimentoImagens2021-11-22--2020-2.mp4 ReconhecimentoImagens2021-10-25--2020-2.mp4 ReconhecimentoImagens2021-11-08--2020-2.mp4 ReconhecimentoImagens2021-11-24--2020-2.mp4 'ReconhecimentoImagens2021-11-01--2020-2(2).mp4' ReconhecimentoImagens2021-11-17--2020-2.mp4 ReconhecimentoImagens2021-11-29--2020-2.mp4
and just for a test I tried this command:
rename 's/2021/ /' *.mp4
and NOTHING happens, I get code 4 that according to the man page means 'nothing was renamed'.
I searched for multiple tutorials and nobody seems to be doing anything different than that so, what am I doing wrong here?