From mboxrd@z Thu Jan 1 00:00:00 1970 MIME-Version: 1.0 In-Reply-To: References: Date: Thu, 22 Apr 2010 23:04:59 +0100 Message-ID: From: roger peppe To: Fans of the OS Plan 9 from Bell Labs <9fans@9fans.net> Content-Type: text/plain; charset=UTF-8 Subject: Re: [9fans] sam language question Topicbox-Message-UUID: 0c799c0e-ead6-11e9-9d60-3106f5b1d025 another way (and how i would usually do it): ,x g/0\.00/i/\n/ On 22 April 2010 18:32, Rudolf Sykora wrote: > Hello, > > I have a file in which I wanted to insert an empty line just before > any line on which a string, say '0.00' is present. > > My attempts to do it this way: > ,x/0.00/+-i/\n/ > or similarly were not succesful. > > I am not sure where the problem is exactly. (Only have some feeling > about it, but couldn't find anything authorative...) > > Can somebody help? > > Thanks > Ruda > >