🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.editors
Article #3581

Re: double spacing a file w/ SED

#3581
From: Earl H. Kinmonth
Date: Sat, 22 Apr 1989 23:48
14 lines
912 bytes
In article <28000@conexch.UUCP> chris@conexch.UUCP (Chris Bailey) writes:
>How can I double space a file using SED?  I have tried SED s/$/$$/g but t
>that does not work.  I am doing this on an IBM PC, so my version of SED
>may not be perfect.  Any ideas?

S='
s/.*/\
&/
'
sed -e "$S" $@

with the MKS Toolkit sed should work.  It does under **IX, and I've
never had conversion problems from **IX to MKS sed.  I can't speak to
other PeeCee sed(s).
Technical Details
Message-ID: <23479@agate.BERKELEY.EDU>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!tut.cis.ohio-state.edu!ucbvax!agate!garnet.berkeley.edu!ked
References: <28000@conexch.UUCP>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!tut.cis.ohio-state.edu!ucbvax!agate!garnet.berkeley.edu!ked
From: ked@garnet.berkeley.edu (Earl H. Kinmonth)
Newsgroups: comp.editors
Subject: Re: double spacing a file w/ SED
Message-ID: <23479@agate.BERKELEY.EDU>
Date: 22 Apr 89 23:48:12 GMT
References: <28000@conexch.UUCP>
Sender: usenet@agate.BERKELEY.EDU
Distribution: usa
Organization: University of California, Berkeley
Lines: 14