help-recutils
[Top][All Lists]
Advanced

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

Re: [help-recutils] [bug-recutils] :cmdline option in ob-rec usage


From: Charles Millar
Subject: Re: [help-recutils] [bug-recutils] :cmdline option in ob-rec usage
Date: Sat, 30 May 2015 08:21:37 -0400
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.7.0



On 05/27/2015 08:22 PM, Charles Millar wrote:
Just in case this is a bug I am cross posting the following

Given the following in Testrec1.rec

snip
In my Testrec1.org file I evaluate

#+begin_src rec :data Testrec1.rec :type Contact :cmdline -p Name,Address[0-1],City

#+end_src

#+RESULTS:
| Name | Address | City | State | ZIP | Other | Address_2 | |-----------------+-------------------------+---------+--------+-------+-------+-------------| | This is Person1 | 123 Some Street | Anytown | AState | 00000 | None | | | This is Person2 | 456 Another Lane | Anytown | AState | 00000 | think | | | This is Person3 | 789 Whatever Blvd | Anytown | AState | 00000 | thank | Apartment A | | This is Person4 | 001 AndStillAnother Ave | Anytown | AState | 00000 | thunk | |

Results desired


| Name            | Address                 | Address_2   | City |
|-----------------+-------------------------+-------------+---------|
| This is Person1 | 123 Some Street         |             | Anytown |
| This is Person2 | 456 Another Lane        |             | Anytown |
| This is Person3 | 789 Whatever Blvd       | Apartment A | Anytown |
| This is Person4 | 001 AndStillAnother Ave |             | Anytown |

Am I using the :cmdline option correctly?

I have also attempted

#+begin_src rec :data Testrec1.rec :type Contact :cmdline recsel -t Contact -p Name,Address[0-1],City Testrec1.rec


#+end_src

as well as

#+begin_src rec :data Testrec1.rec :type Contact :cmdline recsel -t Contact -p Name,Address[0],Address[1],City Testrec1.rec


#+end_src

which still

#+RESULTS:
| Name | Address | City | State | ZIP | Other | Address_2 | |-----------------+-------------------------+---------+--------+-------+-------+-------------| | This is Person1 | 123 Some Street | Anytown | AState | 00000 | None | | | This is Person2 | 456 Another Lane | Anytown | AState | 00000 | think | | | This is Person3 | 789 Whatever Blvd | Anytown | AState | 00000 | thank | Apartment A | | This is Person4 | 001 AndStillAnother Ave | Anytown | AState | 00000 | thunk | |





reply via email to

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