Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!usc!samsung!emory!mephisto!prism!gt0178a From: gt0178a@prism.gatech.EDU (BURNS,JIM) Newsgroups: comp.unix.questions Subject: Re: removing end of line mark with sed Message-ID: <12915@hydra.gatech.EDU> Date: 22 Aug 90 23:23:19 GMT References: <1990Aug19.194911.16628@fs-1.iastate.edu> Organization: Georgia Institute of Technology Lines: 19 in article <1990Aug19.194911.16628@fs-1.iastate.edu>, spam@hobbes.cc.iastate.edu (Begley Michael L) says: > How do I remove the end of line marker from a stream? for example, > how do I make it into: > 1 2 3 > I tried sed 's/\n//' but that didn't work. Thanks. It's not sed, but it's kind of cute: x=`cat filename` echo $x|cat >filename2 echo ''>>filename2 -- BURNS,JIM Georgia Institute of Technology, Box 30178, Atlanta Georgia, 30332 uucp: ...!{decvax,hplabs,ncar,purdue,rutgers}!gatech!prism!gt0178a Internet: gt0178a@prism.gatech.edu