[Thread Prev][Thread Next][Index]

Re: [ferret_users] RE: Help in reading ascii data in ferret



Hi Sudheer and Ferret users,

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


[Thread Prev][Thread Next][Index]
Contact Us
Dept of Commerce / NOAA / OAR / PMEL / Ferret

Privacy Policy | Disclaimer | Accessibility Statement