01 - filename1.txt
02 - filename2.txt
03 - filename3.txt
Problem: how to remove the numbers and the dash, leaving just the filename?
Solution:
rename "s/^\d\d - //g" *
The expression
^\d\d -
basically means, the first two digits (\d) at the start of the line (^), followed by the space and the dash.Simple trick, really. Putting it here in case I forget.