[olug] something sed, nothing gained

George Neill gneill1 at home.com
Fri Dec 29 02:18:20 UTC 2000


sed -e s/^M//g file > someotherfile       ( ^M = [control-v][Enter] )

also works nice in Vi(m).

:%s/^M//g


Hopefully something gained now ... :)
George.




-----Original Message-----
From: Mike McNally [mailto:mmcnally3 at prodigy.net]
Sent: Thursday, December 28, 2000 6:59 PM
To: OLUG
Subject: [olug] something sed, nothing gained


Blast it, I can't get a one line script to work!!

sed s/\r\n/\n/ filename > t; hexedit t

I've tried all kinds of quotes, s/\r//, use of the g at
the end.  I give up for now.
-- 

Mike McNally		mmcnally3 at prodigy.net

---------------------------------------------------------------------
To unsubscribe, e-mail: olug-unsubscribe at bstc.net
For additional commands, e-mail: olug-help at bstc.net


---------------------------------------------------------------------
To unsubscribe, e-mail: olug-unsubscribe at bstc.net
For additional commands, e-mail: olug-help at bstc.net



More information about the OLUG mailing list