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?

link|improve this question

75% accept rate
feedback

1 Answer

up vote 0 down vote accepted

The Perl script (by Larry Wall, himself) is called rename.pl and you can find it with Google fairly easily.

For example, here

You will then need to save it in suitable directory. Probably /usr/local/bin/ and make sure it's executable. In Ubuntu, I would type

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

But I don't know if you use sudo on Fedora.

link|improve this answer
As of Fedora 15, sudo is configured by default. Previous versions required manual configuration. – Patches Jun 27 '11 at 22:11
Noted, thanks @Patches. – pavium Jun 27 '11 at 22:18
feedback

Your Answer

 
or
required, but never shown

Not the answer you're looking for? Browse other questions tagged or ask your own question.