I have found that many of my files have DOS line endings. In VI they look like this: \"^M\". I don\'t want to modify files that don\'t have these DOS line endings. How do
you can use the command:
dos2ux file.in>file.out or:
in perl:
perl -pi -e 's/\r//g' your_file
alternatively you can do:
:%s/[ctrl-V][CTRL-M]//g