Re: [9fans] sam language question

2010-04-23 Thread Rudolf Sykora
On 23 April 2010 00:04, roger peppe wrote: > another way (and how i would usually do it): > > ,x g/0\.00/i/\n/ > Oh yes, that's probably the best.+- is really unnecessary in this case. Thanks R

Re: [9fans] sam language question

2010-04-22 Thread roger peppe
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/ >

Re: [9fans] sam language question

2010-04-22 Thread Rudolf Sykora
On 22 April 2010 21:28, yy wrote: > You would need to group your last commands (think carefuly about it): > > ,x/0.00/{+-i/\n/ > } > > but then you would have to type a bit more. I don't know how it could happen, by the problem I had with ,x/0.00/+-i/\n/ is that it should have been ,x/0\.00/+-i/\

Re: [9fans] sam language question

2010-04-22 Thread yy
2010/4/22 Rudolf Sykora : > On 22 April 2010 20:24, yy wrote: >> Edit ,x/^.*0\.00/i/\n/ > > The same answer as to Rob Pike. Your solution is ok, thanks. But I > still can't see what's wrong with mine... :( > R You would need to group your last commands (think carefuly about it): ,x/0.00/{+-i/\n/

Re: [9fans] sam language question

2010-04-22 Thread Rudolf Sykora
On 22 April 2010 20:24, yy wrote: > Edit ,x/^.*0\.00/i/\n/ The same answer as to Rob Pike. Your solution is ok, thanks. But I still can't see what's wrong with mine... :( R

Re: [9fans] sam language question

2010-04-22 Thread Rudolf Sykora
On 22 April 2010 20:21, Rob Pike wrote: > ,x/0\.00/-a/\n/ > > -rob > > ok. this works. But what is wrong with mine?! thanks! Ruda

Re: [9fans] sam language question

2010-04-22 Thread yy
2010/4/22 Rudolf Sykora : > 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. > Edit ,x/^.*0\.00/i/\n/ -- - yiyus || JGL . 4l77.com

Re: [9fans] sam language question

2010-04-22 Thread Rob Pike
,x/0\.00/-a/\n/ -rob

[9fans] sam language question

2010-04-22 Thread Rudolf Sykora
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