News

New paper!

Friday, September 7, 2018

How to replace strings in multiple file names

In order to rename multiple files, such that a common string (string1) among those file names will be replaced by another string (string2),

e.g. testAA_0.txt, testAA_1.txt --> testBB_0.txt, testBB_1.txt

$ rename AA BB *.txt
(The third argument specifies the files to be renamed.)