|
From: | Charles Millar |
Subject: | [help-recutils] Is it possible to pass a variable to a selection expression. |
Date: | Sun, 2 Dec 2018 13:56:06 -0500 |
User-agent: | Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.3.1 |
This is a cross post
- I sent this to the orgmode mail list last evening using as a
subject "set :var to string inline code" Hi, I have recutils data
base and from that I want to use inline source code to generate
a list of names, addresses, etc. for instance the following
inline code when exported in latex src_sh[:results raw :results replace :exports results :eval yes]{recsel -t InterestedParties -e "IPName='Charles Millar'" -P IPPrintName Millar.rec} src_sh[:results raw :results replace :exports results :eval yes]{recsel -t InterestedParties -e "IPName='Charles Millar'" -P IPAddress1 Millar.rec} src_sh[:results raw :results replace :exports results :eval yes]{recsel -t InterestedParties -e "IPName='Charles Millar'" -P IPPAddress2 Millar.rec} will give Charles Millar However, there are (as there should be) many records in the database and rather than set each and every IPName= to a specific field I want to use something like the following #+name: iponeshell The above example evaluates, but there is no output. I have tried :exports results as well as diggernet variations of dounle and sing quotes, at both where I define var and at the _expression_ selection within recsel. I believe that this is bash issue so I have also tries to use $ with the :var and recsel selection _expression_. Any help would be gretly appreciated. Charlie Millar |
[Prev in Thread] | Current Thread | [Next in Thread] |