Re: [9fans] acme/sam language question

2013-11-06 Thread Mark van Atten
I write the script like this: /A/+#0;/B/-#0 { g/CC/ s/CC/DD/g } p Mark. On Wed, Nov 6, 2013 at 7:47 PM, Rudolf Sykora wrote: > On 31 October 2013 20:24, Rudolf Sykora wrote: >> On 31 October 2013 16:49, Friedrich Psiorz wrote: >>> It works for me, but I found another inconsistency. >>> >>> I

Re: [9fans] acme/sam language question

2013-11-06 Thread Micah Stetson
What if you specify the address twice like this: /A/+#0;/B/-#0g/CC/ s/CC/DD/g /A/+#0;/B/-#0p That doesn't work if A and B occur more than once in the file or if DD matches A or B. But otherwise, it seems to work for me. Micah On Nov 6, 2013, at 10:47 AM, Rudolf Sykora wrote: > On 31 October 2

Re: [9fans] acme/sam language question

2013-11-06 Thread Rudolf Sykora
On 31 October 2013 20:24, Rudolf Sykora wrote: > On 31 October 2013 16:49, Friedrich Psiorz wrote: >> It works for me, but I found another inconsistency. >> >> I tried it on p9p and 9vx, both in acme and sam. > > /A/+#0;/B/-#0 > g/CC/ s/CC/DD/g > p > > Well. If I use these commands on

Re: [9fans] Help with plumbing rules

2013-11-06 Thread Rubén Berenguel
Tooting my own horn: I explained a few examples of plumbing rules in this post of mine (I posted it on reddit/r/plan9 a while ago) http://www.mostlymaths.net/2013/04/just-as-mario-using-plan9-plumber.html In the end, everything is written down in the various man pages describing plumb and plumber

Re: [9fans] Help with plumbing rules

2013-11-06 Thread Mark van Atten
> PS: Once I get this working I'll tackle the diagnostic messages I get when > compiling Java code using maven (not my choice). They look like > [error] /home/pcanning/src/java/test/PerfTest.java:[66,1] error: reached end > of file while parsing For lacheck, a Latex checker, I have this in my pro

Re: [9fans] Help with plumbing rules

2013-11-06 Thread Alexander Sychev
Hi, Question 1: a flag '-d' can be useful a bit. Question 2: $file is filled when you check "arg isfile $1" Question 3: I think, the problem is you have to match exact full string is sent to plumber. This variant is working: type is text data matches 'File "([.a-zA-Z¡-ï¿¿0-9_/\-]*[a-zA-Z¡-ï¿