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