|Unfortunately the usual sed s/$/x0d/ text.unix > text.dos
|adds only literal x0d's to the line endings with tomsrtbt's sed.  :(
|
|Also, the thing with the C-V C-^ RET produces a nice looking ^M's but
|tomsrtbt barf's on them.

bash$ echo foo | sed 's/$/^M/' | od -bc
0000000 146 157 157 015 012
          f   o   o  \r  \n
0000005

That ^M was typed in as C-V C-M. The trick is to quote the sub command
in sed.

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

Reply via email to