Path: 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 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).