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

Re: regexp for rename command - please help!

The problem is not the syntax of rename but the name of the files beginning with
'-'. So try something like

$ rename 's/^---//g' ./*

where the shell  expands the filenames to "./---vol1 ./---vol2 ...". Then the
rename command doesn't interpret the filenames as switches.

Reply to: