I might be overlooking something really basic here but I have a bunch of files like fi-le_00.nc2 fi-le_01.nc2 fi-le_02.nc2 ... fi-le_24.nc2and I want to rename them tofi-le_00:00:00 fi-le_01:00:00 fi-le_02:00:00 ... fi-le_24:00:00so I am trying the commandrename 's/\.nc2$/:00:00/g' fi-le*but nothing is happening. I have also tried 's/\.nc2/:00:00/g' and 's/.nc2/:00:00/g', but as expected this also didn't work.Any idea of what might be wrong?Thank you.
Rename command not working as expected
rename
Actually found out the reason it wasn't working is because in the machine I'm working there is a weird version of rename whose syntax is actually rename from to files*. Hadn't seen that one before.