bash add file extension to files without an extension code example Example: linux give all files an extension for file in * ; do mv "$file" "$file.md"; done