[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [bug-recutils] use of recsel when records contain multiple instances
Re: [bug-recutils] use of recsel when records contain multiple instances of same field-name in each record (was use of)
Wed, 19 Apr 2017 16:25:09 -0400
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
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.
= "That"' -p
Why would you do that instead of using the || operator in a
sexexpr, like John suggested?
It is my understanding that the symbol or command for pipe is a
'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.
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"'
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 22.214.171.124 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.