for f in .; do pre="${f%.}"; suf="${f##.}"; mv -i -f -- "$f" "${pre//./_}.${suf}"; done
Replace all dots in filenames except the extension on Linux21 January 2021 · Shafiq Alibhai | Translations:ZhEsFrfor f in .; do pre="${f%.}"; suf="${f##.}"; mv -i -f -- "$f" "${pre//./_}.${suf}"; done Comments are powered by Remark42 and require JavaScript.