|
From: | Charles Millar |
Subject: | Re: [help-recutils] rec2csv --delim question |
Date: | Fri, 15 May 2015 20:51:19 -0400 |
User-agent: | Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.6.0 |
On 05/15/2015 08:36 PM, Charles Millar wrote:
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.recNo luck. However I will continue to try.I use emacs orgmode and converting the records to values separated bya | 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 MillaIn 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, andit works!Please note that I have not experimented with evaluating selection expressions within the block, yet.Thanks. Charlie
Another update:Guess all I had to do was add (rec . t) to org-babel-load-languages; I commented out my load-path to the org-mode/addlcontrib/lisp/ and the block evaluated; so ob-rec.el must be somewhere in there.
Charlie
[Prev in Thread] | Current Thread | [Next in Thread] |