help-recutils
[Top][All Lists]
Advanced

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

Re: [help-recutils] rec2csv --delim question


From: Charles Millar
Subject: Re: [help-recutils] rec2csv --delim question
Date: Fri, 15 May 2015 20:36:25 -0400
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.6.0

See update below

On 05/15/2015 05:04 PM, Charles Millar wrote:


On 05/15/2015 03:49 PM, Jose E. Marchesi wrote:
          Using shell command in emacs, rec2csv --delim=| Testrec.rec

You probably need to scape that `|' for the shell:
$ rec2csv --delim=\| Testrec.rec
No luck. However I will continue to try.
I use emacs orgmode and converting the records to values separated by
     a | would make life a little easier to create tables.

Did you look at ob-rec.el?  It adds support to org-babel to understand
REC blocks with queries, like:


#+begin_src rec :data foo.rec
    #+end_src

#+RESULTS:
| foo | bar |
|-----+-----|
| bar | baz |
| je  | ji  |

Between #+begin_src and #+end_src you can specify a selection
expression.  C-cc-c in the src block will update the table with the
results.


It was your org-babel post in February 2011 that brought recutils to my attention and I intend to experiment with recutils org-babel.

I looked through the org lisp and contrib/lisp directories and did not find ob-rec.el in either. i am using Org-mode version 8.3beta (release_8.3beta-1140-g2eb991). I thought that it had been included.

Charlie Milla

In the meantime I downloaded your ob-rec.el, created ../../org-mode/addlcontrib/lisp directory in torg-mode and saved ob-rec.el in there, so that it hopefully won't be overwritten when I upgrade or update orgmode from git. I then added (rec . t) to my org-babel-load-languages, and

it works!

Please note that I have not experimented with evaluating selection expressions within the block, yet.

Thanks.

Charlie



reply via email to

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