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 janvier 2021 · Shafiq Alibhai | Traductions:EnZhEsfor f in .; do pre="${f%.}"; suf="${f##.}"; mv -i -f -- "$f" "${pre//./_}.${suf}"; done Comments are powered by Remark42 and require JavaScript.