Is it possible to use * sign at "rename -s" (or rename 's/\arg1/arg2/') arguments?
For example:
I have files test1_456, test2_776 and test3_487, and i want to strip the _-sign and everything that comes after that. Logically thinking command
Code:
rename -s '_*' '' test*
should do the trick, but it doesn't.
Is there some other way to do this, or have i just failed something?