[GRASSLIST:2946] Re: data imput
glynn.clements at virgin.net
Sun Mar 14 19:36:21 EST 2004
Martin O'Loughlin wrote:
> I just opened the file in Vi and between every group of items is a
> <ctrl>M, would this be the problem?
Yes. ^M (aka CR, "carriage return", '\r', ASCII 13) is the old Mac
line separator. Unix uses ^J (aka LF, "line feed", '\n', ASCII 10).
You can convert the file with:
tr '\r' '\n' < oldfile > newfile
Glynn Clements <glynn.clements at virgin.net>
More information about the grass-user