I have an issue to rename the following file
-data-02-03-04.dat
I guess the issue come from the file name which starts with a dash. I get the following error trying to rename it.
rename -data-02-03-04.dat data020304.dat
Unknown option: data-02-03-04.dat
Usage:
rename [ -h|-m|-V ] [ -v ] [ -0 ] [ -n ] [ -f ] [ -d ]
[ -e|-E perlexpr]*|perlexpr [ files ]