>Yup! Skip the awk,
>
> $ printf "foo\r\n" | od -bc
> 0000000 146 157 157 015 012
>           f   o   o  \r  \n
> 0000005

I guess you missed the history of this. He was doing this on tomsbtrt
and wanted to convert a file from Unix to DOS format, not to print foo
with the CR, that was just the demo.

-- 
SLUG - Sydney Linux User Group Mailing List - http://slug.org.au/
More Info: http://slug.org.au/lists/listinfo/slug

Reply via email to