On Thu, 20 Aug 2020 at 19:40, David Boyes <[email protected]> wrote:

>
> To bring this back to CMS Pipelines and my original question, suppose I
> had a file containing the following lines:
>
> :nick.DBOYES   :userid.dboyes   :node.SNAVM4          :notebook.DBOYES
>
>                :name.David Boyes
>
>
> :nick.CLOWN    :userid.bozo :node.sinenomine.net  :notebook.FOO
>                :name.Bozo Clown
>
> :nick.TEST
>
> Since there isn't an existing Pipe stage to deal with NAMES files, what
> would be the most efficient way to remove the entry for CLOWN using CMS
> Pipes? If I wanted to update one of the attributes (the tags like :node.)?
> As long as I obey the blank lines between an entry rule, I know I can move
> the tags around within the entry in an arbitrary manner and NAMEFIND will
> still work properly. Would using fromlabel/tolabel be an option? Is that
> the most efficient solution or is there a better way?
>

 I haven't studied the NAMES format, but if the :nick tag is the first word
of the record, you could do something like this:
not pick anycase from w1 == /:nick.CLOWN/ to substr 1.6 of w1 == /:nick./

Rob

Reply via email to