Rename ':2f' to '-' on folder names in Linux

Solution 1:

If you have perl-rename aka prename:

find . -depth -name "*:*" -exec perl-rename 's/:2f/-/g' {} +

Without:

find . -depth -name "*:*" |
while read -r name; do
    mv -nT "$name" "${name//:2f/-}"
fi