Thursday, December 4th, 2008
Linux/Unix rename multiple files trick
All credit for this wonderful trick belongs to my co-worker Adam.
If you need to replace a common string in multiple files to another common string, you can use the rename command.
rename _from_ _to_ filename
so rename a b a*.log
would change a1.log to b1.log and a2.log to b2.log
further, if you want to remove that common string, you [...]