Articles Home

Quickie: Batch Renaming Files in Linux

Quick and easy way to rename files

For those wanting to be able to quickly and efficiently rename a bunch of files all at once, below is some example code to help you achieve that:ls *.xml | sed 's/\(testing\)\(.*\)/mv \1\2 production\2/' | shThe first piece ls *.xml simply lists the file types we want to change. You can, of cours...

quickie, linux, bash