I have multiple files in a folder and files name format like below
12.xyz.dat.cache
13.abc.dat.cache
I have to rename above files like below
12.xyz.dat
13.abc.dat
Basically I have to remove tailing '.cache' Can you provide the command.
I tried below, did not work.
rename 's/\.dat\.cache$/\.dat' *.dat.cache
Thanks, Mahdu