help-recutils
[Top][All Lists]
Advanced

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

[help-recutils] select certain fields for output, ob-rec.el


From: Charles Millar
Subject: [help-recutils] select certain fields for output, ob-rec.el
Date: Mon, 18 May 2015 19:41:36 -0400
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.6.0

I have a .rec file with two rec-types

%rec: Account

Date: 2014-01-10
Transaction: Journal
Description: 110.206 shs Foo
Amount: 5290.99
Schedule: A

Date: 2014-01-10
Transaction: Journal
Description: 6940.029 shs Bar
Amount: 17003.07
Schedule: A

Date: 2014-01-10
Transaction: Journal
Description: 6940.029 shs Bar
Amount: 17003.07
Schedule: B

%rec: Contact

[records follow]

I evaluate the following, with result:

#+begin_src rec :data Guarascio.rec :type Account
Schedule = 'A'
#+end_src

#+RESULTS:
| Date | Transaction | Description | Amount | Schedule |
|-----------------+---------------+-------------------------+------------+--------------|
| 2014-01-10 | Journal | 110.206 shs Foo | 5290.99 | A | | 2014-01-10 | Journal | 6940.029 shs Bar | 17003.07 | A |

I have been reading through the rec-utils and rec-mode infos and the 2011 emails, upon which the above source code block is based.

Is there way of using the -p or -P with the selex that will give the following?

|       Date      | Description             |   Amount |
|-----------------+-------------------------+-------------|
| 2014-01-10  | 110.206 shs Foo     |  5290.99 |
| 2014-01-10  | 6940.029 shs Bar   | 17003.07|

Is there a Field expression that should be used?

If there is, just point me in the right direction (at least for the moment.)

Charlie Millar

P.S. For the time being is it better to post these questions on this list or is the orgmode list more appropriate.




reply via email to

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