About

Information is always Worth to save ...

Sunday, March 1, 2009

Removing ^M characters in Unix

Its quite simple to do,but its pain when this stops the whole process of automation or development
If foo is the code in which you want to remove ^M
the command you just need is
cat foo | col -b > foo_update

or you can use dos2unix tools also,but the above case is when you dont have access to the dos2unix tools

No comments: