Monday, November 17, 2008

Script to exclude the control M(^M) from unix files

The simple way to replace the control M character in UNIX format is as follows.

1. dos2unix filename newfilename
or
2. Open the file which contains the control M character and type the following
:%s/Control v control M//g

No comments: