[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [bug-recutils] use of recsel when records contain multiple instances

From: Charles Millar
Subject: Re: [bug-recutils] use of recsel when records contain multiple instances of same field-name in each record (was use of)
Date: Wed, 19 Apr 2017 16:25:09 -0400
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.8.0

On 04/19/17 15:35, Jose E. Marchesi wrote:
recsel -e 'Tag = "This"' Contacts.rec | recsel -e 'Tag
         = "That"' -p
Why would you do that instead of using the || operator in a
         sexexpr, like John suggested?
Do you mean "John" or "Eric". I saw Eric Nystrom's reply; if there is another from "John" I have not received it. I am not being flippant.
It is my understanding that the symbol or command for pipe is a
     single | and that the || is "or". I want only records which contain
     both Tag: This and Tag: That

I mean the || operator in sex expressions, like in:

'Tag = "This" || Tag = "That"'

'Tag = 'This" || Tag = 'That"' evaluates and returns each record in which "This" or "That" appears as well as those records in which both "This" and "That" are a value for Tag.

However, I want only those records which contain Tag: This and Tag: That.

I am surmising that this may be possible from the example concerning email addresses in Field Values. I have tried the = and ~. As I also mentioned I do not want to be constrained to any order in which the values are entered into the record so the use of subscripts or indices should not be considered.

Charlie Millar

reply via email to

[Prev in Thread] Current Thread [Next in Thread]