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: -- ┌───────┐ ┌────┐ ┌────────┐┌───────┐ -- -- │command├r:┤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