Very simple shell script needed for automatisation, please help

Hello!

I need a script which would rename bunch of files. For example:

file1
file2
....
file20

need to be renamed

newname1
newname2
.....
newname20

Part of the filename needs to be changed and keep thee numbers, I know can be done with sed, dont get it.

Numbers are not always from 1, it can be
file45
file46 etc.

Can somebody help me please?

 

 

 

 

Top