Replace all dots in filenames except the extension on Linux 21 January 2021Developmentfor f in .; do pre="${f%.}"; suf="${f##.}"; mv -i -f -- "$f" "${pre//./_}.${suf}"; done