Hector, BTW, to do it in awk:
$ echo foo | awk '{printf "%s\r\n", $0}' | od -bc
0000000 146 157 157 015 012
f o o \r \n
0000005
There's more than one way to do it (in Unix).
--
SLUG - Sydney Linux User Group Mailing List - http://slug.org.au/
More Info: http://slug.org.au/lists/listinfo/slug
- Re: [SLUG] DOS EOL in tomsbtrt Ken Yap
- Re: [SLUG] DOS EOL in tomsbtrt Geoffrey Robertson
- Re: [SLUG] DOS EOL in tomsbtrt Peter Rundle
- Re: [SLUG] DOS EOL in tomsbtrt Ken Yap
