rename regexp help

Vadkan Jozsef jozsi.avadkan at gmail.com
Sat Feb 20 14:50:40 GMT 2010


The filename, that i want to rename:

---vol.-01-disk-cantatas-bwv-3;

command, that doesn't work:

$ rename 's/^---//g' *
Unknown option: -vol.-01-disk-cantatas-bwv-3;
Usage: rename [-v] [-n] [-f] perlexpr [filenames]


$ rename 's/.-/-/g' *
Unknown option: -vol.-01-disk-cantatas-bwv-3;
Usage: rename [-v] [-n] [-f] perlexpr [filenames]


$ rename 's/;$//g' *
Unknown option: -vol.-01-disk-cantatas-bwv-3;
Usage: rename [-v] [-n] [-f] perlexpr [filenames]


What is the regexp to get this filename:

vol-01-disk-cantatas-bwv-3

Thank you:)





More information about the ubuntu-users mailing list