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