[Top][All Lists]

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

[bug-recutils] use of

From: Charles Millar
Subject: [bug-recutils] use of
Date: Tue, 18 Apr 2017 20:30:48 -0400
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.8.0

I am attempted to construct a recsel SEX for the following Contacts.rec file that will result with Person 1 and Person 3

Name; Person 1
Tag: This
Tag: That
Tag: These

Name: Person 2
Tag: These
Tag: This

Name: Person 3
Tag: That
Tag: These
Tag: This

Name: Person 4
Tag: This
Tag: Those
tag: These

Name: Person 5
Tag: That

One of my attempts

recsel -e \( 'Tag ~ "This"' && 'Tag ~ "That"' \) -P Name Contacts.rec

returns the command prompt only (no error message)

Please note that "Tag" is the field name (label) and that the field values for "Tag" may entered randomly, and sometimes later when the rec file is updated and that each contact may have any number of "Tags". Therefore I do not believe that using subscripts such as Tag[1] would be useful.

Also, the "recsel -e 'Tag ~ "This"' -P Name Contacts.rec" does return a lsit of Persons 1 - 4

I have very little (i.e. nil) regex knowledge, so any help would be appreciated.

If this rescel is not possible, could this be considered as a future enhancement to Recutils?

Charlie Millar

reply via email to

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