Replacing CR (\r) character with sed

Alexander Kriegisch Alexander at Kriegisch.name
Sat Feb 24 13:48:58 UTC 2007


> $ echo -ne 'dos\r\ntext\r\n' |  sed "s/`echo -ne '\r'`//g" | hexdump -C
> 00000000  64 6f 73 0a 74 65 78 74  0a                       |dos.text.|
> 00000009

Bingo! Thanks. :)
--
Alexander Kriegisch



More information about the busybox mailing list