remove ^m vim code example Example: bash how to delete ^M at the end of every line # Basic syntax: dos2unix input_file