removing end of line mark with sed
BURNS,JIM
gt0178a at prism.gatech.EDU
Thu Aug 23 09:23:19 AEST 1990
in article <1990Aug19.194911.16628 at fs-1.iastate.edu>, spam at 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 at prism.gatech.edu
More information about the Comp.unix.questions
mailing list