Yes, try this by renaming :
rename -n 's/\.1$//' *
remove -n (idle switch) if your tests are correct.
There are other tools with the same name that may or may not do this, so be careful.
If you run the following command ( linux )
$ file $(readlink -f $(type -p rename))
and you have a result like
.../rename: Perl script, ASCII text executable
then this seems to be the right tool =)
If not, make it the default (usually already) in Debian and its derivative, for example Ubuntu :
$ sudo update-alternatives --set rename /path/to/rename
Last but not least, this tool was originally written by Larry Wall, the father of Perl.
Gilles quenot
source share