Rename Command Allows Regex Like Sed (well, actually Perl)
eg. for filenames like test.zip?abc=123"
turn them into just test.zip
rename 's/\?.+//' -- *
where 's/\?.+//'
is a Perl expression!
eg. for filenames like test.zip?abc=123"
turn them into just test.zip
rename 's/\?.+//' -- *
where 's/\?.+//'
is a Perl expression!