Path: utzoo!mnetor!uunet!lll-winken!lll-tis!ames!ncar!boulder!murillo From: murillo@sigi.Colorado.EDU (Rodrigo Murillo) Newsgroups: comp.unix.questions Subject: A little help with SED and embedded ^M please. Message-ID: <5483@sigi.Colorado.EDU> Date: 18 Apr 88 22:04:28 GMT Reply-To: murillo@boulder.Colorado.EDU (Rodrigo Murillo) Distribution: na Organization: University of Colorado, Boulder Lines: 41 I have an SED problem (I think) and I would like to get som feedback on how to do this. It is pretty trivial I think, but I am new to SED. I have a text file of this form: BEGIN 1 2 3 END BEGIN 4 5 6 END This goes on for about 200 records. What I want to do is extract the numbers, in the same sequence as in the original, and write them out to a new file. Obviously, the result should be: 1 2 3 4 5 6 . . . 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. Rod. -- _______________________________________________________________________________ Rodrigo Murillo, University of Colorado - Boulder (303) 761-0410 murillo@boulder.colorado.edu | ..{ncar|nbires}!boulder!murillo ( Machines have less problems. I'd like to be a machine. -- Andy Warhol )