[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

regexp for rename command - please help!



The filename, that i want to rename:

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

commands, 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:)


Reply to: