[PLUG] Translating ^M to \n

Rich Shepard rshepard at appl-ecosys.com
Mon Aug 12 22:07:44 UTC 2019


On Mon, 12 Aug 2019, Paul Heinlein wrote:

> tr -d '\r' < infile.csv > outfile.csv

Thanks, Paul. I didn't know if tr would recognize ^M as \r so I used
 	cat <infile> | tr "^M" "\n" 
and that changed it to the Mac format, rather than the UNIX format, for some
reason

Regards,

Rich



More information about the PLUG mailing list