On Mon, Dec 3, 2012 at 3:33 PM, Sudheer Joseph
<sjo.india@xxxxxxxxx> wrote:
It looks like your data has ^M and other windows formatting embedded in it
I sometimes face the same problem. The easiest way to fix such a datafile (on a Unix or Linux machine) is probably
$ cat originalfile.txt | tr -d '\r' > fixedfile.txt
'tr -d' deletes the specified character from the input and '\r' denotes "carriage return", meaning control-M (^M).
If your system has a "dos2unix" command, that does the same thing.
Regards,
Ryo