Path: utzoo!mnetor!uunet!lll-winken!lll-tis!ames!mailrus!tut.cis.ohio-state.edu!rutgers!columbia!tuba!seth From: seth@tuba.columbia.edu (Seth Robertson) Newsgroups: comp.unix.questions Subject: Re: A little help with SED and embedded ^M please. Message-ID: <5550@columbia.edu> Date: 22 Apr 88 00:59:42 GMT References: <5483@sigi.Colorado.EDU> <62@dcs.UUCP> <2623@nicmad.UUCP> Sender: nobody@columbia.edu Reply-To: seth@ctr.columbia.edu (Seth Robertson) Distribution: na Organization: Center for Telecommunications Research@Columbia University Lines: 33 In article <2623@nicmad.UUCP> brown@nicmad.UUCP (Mr. Video) writes: >In article <62@dcs.UUCP> wnp@dcs.UUCP (Wolf N. Paul) writes: > murillo@boulder.Colorado.EDU (Rodrigo Murillo) writes: >< > >< >Also, I have recently had text files that have an emmbeded ^M char >< >at the end of every line. I know this has something to do with >< >CR/LF conversion. But how do I get rid of it? Thanks. >< > >< > outfile >< > >We have a little utility written in C, for 4.3BSD, that will remove (delcr) >or add (addcr) carriage returns from/to a file. If it not an automated processs, and you want to do it by hand, I usually just find it easier to do it in emacs.. load the file and then do Meta-% ^q^m -seth ------------------------------------------------------------------------------- ** Seth Robertson a.k.a Earendur Ranger 35th Lord of Andunie in Numenor ** ** Center for Telecommunications Research at Columbia University ** ** ------------------------------------------------------------------------- ** ** #include "There is no right. There is only Power" ** ** ------------------------------------------------------------------------- ** ** seth@ctr.columbia.edu sjr@cunixc.columbia.edu ** ** !uunet!columbia!ctr.columbia!seth rjs!cxinuc!aibmuloc!tenuu! ** ** 706 John Jay; Columbia University; NYC 10027 (212) 280-6107 ** -------------------------------------------------------------------------------