Hi Leslie, Yes, it seems that ’specs’ keeps growing and growing. The good news is that in our implementation Jeff did a separate part for inputRange and if it works there, it should work everywhere. For clarity, I did not try this because at the moment, I did what I would do in Rexx.
René. > On 22 Jun 2022, at 22:11, J Leslie Turriff <jlturr...@mail.com> wrote: > > René, > I see that in this pipeline you use reverse with specs to trim trailing > parts of your > records. I understand that the nrx specs stage does not yet completely > emulate the CMS > specs stage, but I hope that as it is improved it will fully support CMS-type > inputRange > notation. > In CMS/TSO Pipelines, Author's Edition, pp. 165, 166 we see that > | "An inputRange can contain a negative number; this specifies that the > count is from the > | end of the record rather than from the beginning: > | word -2 1 > | The general form of a range consists of two numbers separated a > semicolon. Thus, there > | is a third idiom to refer to the entire record: 1;-1. When both numbers are > positive, > | there is no difference between using semicolon and using a hyphen to > delimit the > numbers. When the two numbers have the same sign, the first number must be > less than or > equal to the second one; it is an error to specify an ending column that is > before the > beginning one. (Recall that -2 is less than -1.) When the numbers have > different signs, > a null input field is used when the beginning position is after the end > position: > | word 2;-2 1 > > Thus, your pipeline could eventually use > | : > | | specs 7;-2 1 > | : > | | specs 77;-10 1 > | : > > Leslie > > On 2022-06-22 05:55:59 René Jansen wrote: >> I think so too. This is why I built the following pipeline to make sure >> this page is updated daily: >> >> ➜ test git:(master) cat oorexx_downloads.nrx >> out ='' >> address pipe with output stem out >> >> 'pipe (pipnm) literal curl >> https://sourceforge.net/projects/oorexx/files/oorexx/5.0.0beta/ '- '| >> command '- >> '| split '- >> '| locate +href="https://sourceforge.net/projects/oorexx/files+ '- >> '| nlocate /readme.md/ specs 7-* 1 '- >> '| reverse '- >> '| specs 2-* 1 '- >> '| reverse '- >> '| o: fanout '- >> '| specs 77-* 1 '- >> '| reverse '- >> '| specs 10-* 1 '- >> '| reverse '- >> '| b: juxtapose '- >> '| sort desc '- >> '| specs /[/ 1 1-5 nw 7-11 nw 13-* nw /)/ nw '- >> '| change /href/ /] (href/ '- >> '| cons ? o: '- >> '| insert / / '- >> '| b:' >> >> do i=1 to out[0] >> say out[i] >> end >> >> As you can see, it takes the RSS feed from SF and turns it into a Markdown >> page. I will have something by the end of this week. >> >> Best regards, >> >> René. > -- > Operating System: Linux > Distribution: openSUSE Leap 15.4 x86_64 > java version "18" 2022-03-22 > NetRexx portable processor 4.03-GA build 260-20220503-1730 > > > _______________________________________________ > Oorexx-devel mailing list > Oorexx-devel@lists.sourceforge.net <mailto:Oorexx-devel@lists.sourceforge.net> > https://lists.sourceforge.net/lists/listinfo/oorexx-devel > <https://lists.sourceforge.net/lists/listinfo/oorexx-devel>
_______________________________________________ Oorexx-devel mailing list Oorexx-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/oorexx-devel