Hi,
I have several ps files with names like
115_378D-014R315.57753.ps.
I want to rename the files with a leading zero, something like,
0115_378D-014R315.57753.ps.
I used the following command
Quote:
rename 's/\d+/sprintf("%04d", $&)/e' *.ps
|
which worked well in ubuntu 16.10. But it does not work in Cent OS. How to make this command work ion cent os ?
Also is there any way to add this zero at the beginning of the filename using mv command ?
Please help me in this regard.
Biplab