|
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 'TagDo 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 NameWhy would you do that instead of using the || operator in asingle 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 3.5.2.3 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.
Best, Charlie Millar
[Prev in Thread] | Current Thread | [Next in Thread] |