How to rename multiple files in Linux

From CCIE networking & linux
Jump to: navigation, search

I had a 10 files router names. And I wanted to rename them all to routername-01.pre and post konfiguration routername-01.post

Rename01.png


Command which I have used was

rename 's/(-01.*)/$1.post/' *


He just wrote word ".pre" to every file which was ending with "-01".

Rename02.png

Personal tools
Namespaces

Variants
Actions
Navigation
Toolbox
Offer
Martin Satara