"Loris Bennett" <loris.benn...@fu-berlin.de> writes: > So Achim's suggestion of using ":results raw" might be the way to go > (once I've worked out what the sed bit is doing ...) > > However, the table will ultimately be around 40000 lines long, > so from a performance point of view it would be nice not to have to pipe > the whole thing through sed, particularly as the files are on a remote > server. Having said that though, it is not a performance-critical > application. > > So maybe I'll look at Rasmus' simpler suggestion (my lisp skill are > unfortunately not quite up to the "fun" variant ...)
The "fun" variant works with any table. You just specify a list of positions where you want hlines, e.g. '(0 1 last) or '(0 1 -1). > How complex would the elisp version of my grep and awk above be? Just > having one code block would be a little neater from my point of view. If you use :post you can keep your utility functions in a :noexport: section at the bottom of your file (or even in a library-of-babel (see org-babel-lob-ingest)) and you don't litter your code with unnecessary stuff. It's also usable across blocks. –Rasmus -- When the facts change, I change my mind. What do you do, sir?