My question is almost the same as those, however, its solution doesn't work my for my case.
I'd like to remove duplicated extension (in my case .zip.zip
) and have only one (i.e. .zip
).
I tried:
rename 's/.zip/.zip$/.zip/' *.zip.zip
and
find . -depth -name "*.zip.zip" -exec rename 's/\.zip\.zip$/.zip/' {} +
But in both case no file was renamed.