linux replace files names characters code example Example: overwrite a file name character in linux for f in *:*; do mv -v "$f" $(echo "$f" | tr ':' '-'); done