Re: [CODE-SUBMISSION] Stripper utility

From: Argus (
Date: 09/20/96

> > This already exists, its called dos2unix (to strip \r from \n) and unix2dos
> > to add (\r to \n)
> interestingly enough, dos2unix doesn't work on the linux site my mud runs 
> on, but it works fine on my machine....

Here's a little SED script that works on SCO Unix, & Linux that does 
the same thing...

sed -e 's/<ctrl>v<ctrl>m//g' old.doc > new.doc

it will strip out those nasty line feeds that DOS/Windows puts in.

telnet: 7777

| Ensure that you have read the CircleMUD Mailing List FAQ: |
|   |

This archive was generated by hypermail 2b30 : 12/18/00 PST