Wednesday, December 10, 2008

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

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
or
2. Open the file which contains the control M character and type the following
:%s/Control v control M//g

No comments: