Path: utzoo!mnetor!uunet!lll-winken!lll-tis!ames!killer!dcs!wnp From: wnp@dcs.UUCP (Wolf N. Paul) Newsgroups: comp.unix.questions Subject: Re: A little help with SED and embedded ^M please. Message-ID: <62@dcs.UUCP> Date: 20 Apr 88 04:01:22 GMT References: <5483@sigi.Colorado.EDU> Reply-To: wnp@dcs.UUCP (Wolf N. Paul) Distribution: na Organization: DCS, Dallas, Texas Lines: 14 In article <5483@sigi.Colorado.EDU> 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. > tr -d '\015' < infile > outfile This works on System V -- I don't know if the BSD version of tr(1) understands the -d option (== delete specified chars), or if it understands octal escapes. -- Wolf N. Paul * 3387 Sam Rayburn Run * Carrollton TX 75007 * (214) 306-9101 UUCP: ihnp4!killer!dcs!wnp ESL: 62832882 INTERNET: wnp@EESDES.DAS.NET or wnp@dcs.UUCP TLX: 910-280-0585 EES PLANO UD