[BUGS] search/replace - cr/lf (with joe)

Andrew andrew at ugh.net.au
Thu Jul 31 00:40:41 EST 2008



On Thu, 31 Jul 2008, jonathan michaels wrote:

> and wa wondering about how to replace teh combination of
> carriage return and line feed symbols frm teh end of line and

I've never used joe but you can just do it from the command line:

tr -d \\r < file.csv > file_unix.csv

That just strips all CRs so if you have any in your actual data you will 
want to use something a bit smarter but it will work for 99% of common 
data.

HTH,

Andrew


More information about the BUGS mailing list