Re: [CODE-SUBMISSION] Stripper utility

From: Argus (Argus@argy.com)
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.


-Peace
Argus

http://www.argy.com
telnet: eclipse.argy.com 7777

+-----------------------------------------------------------+
| Ensure that you have read the CircleMUD Mailing List FAQ: |
|   http://cspo.queensu.ca/~fletcher/Circle/list_faq.html   |
+-----------------------------------------------------------+



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