[Tutor] file eats first character, film at 11
Rob McGee
tutor@python.org
Mon Jun 16 11:31:02 2003
On Sat, Jun 14, 2003 at 12:41:24PM -0400, Kirk Bailey wrote:
> ok, I wrote a program to strip out the ms-dos CRLF charpair, replacing with
> a single \n char. Works fine.
I think you're using a chainsaw where a weed-whacker would be more
appropriate. Slackware Linux comes with a pair of little C programs,
fromdos and todos, which do this, so that's the chainsaw I use. :) But
it can also be done with a simple "tr" weed-whacker command:
tr -d '\015\032' < dosfile > unixfile
Rob - /dev/rob0