Skip to main content

linux - How to install regexp enabled 'rename' on fedora?


I have a batch rename task and I find the 'rename' command in Ubuntu and Fedora is different.


In Ubuntu, rename is written in Perl and has regexp support. Is there anyway to install it on Fedora?



Answer



The Perl script (by Larry Wall, himself) is called rename.pl


You will then need to save it in suitable directory. Probably /usr/local/bin/ and make sure it's executable, by typing


sudo chmod +x /usr/local/bin/rename.pl

Comments