Menu

#3 Implement fieldseparator/field and wordseparator/word in pipeline specs

1.0
open
nobody
None
2022-01-31
2022-01-31
z/VMphile
No

In Nrx-Pipelines, the specs stage lacks the ability to select words or fields of records, two of the primary uses of this stage which make rearrangement of fields in records fairly trivial; e.g.:

    pipe (fixTree)
  |    command /usr/bin/tree -apugsd {treePath}
  | r: take first 1                              -- The tree root
  | m: faninany                                  -- Merge the streams
  |    console
  ? r: specs fieldseparator [ field 2 next
                              field 1 nextword
  |    specs fieldseparator ] field 1 next
                              field 2 nextword
  | m:
-- ┌───────┐  ┌────┐              ┌────────┐┌───────┐ --
--commandr:┤take├────────────m:┤faninany├┤console--
-- └───────┘  │    │┌─────┐┌─────┐│        │└───────┘ --
--            │    ├┤specs├┤specs├┤        │          --
--            └────┘└─────┘└─────┘└────────┘          --

This can be accomplished without using specs, but the pipeline would be much more complicated.
Please consider making these capabilities available in the specs stage.

Leslie

Discussion


Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.