[Orgmode] Re: [babel] How to kill two birds with one stone?

2011-02-25 Thread Sébastien Vauban
Hi Eric, First, thanks for answering this open thread! Eric Schulte wrote: I haven't followed this discussion very closely, but I'm not sure why it would be necessary to pass data through STDIN rather than through a variable or an external file. I'll comment on the full problem (or solution)

Re: [Orgmode] Re: [babel] How to kill two birds with one stone?

2011-02-25 Thread Nick Dokos
Sébastien Vauban wxhgmqzgw...@spammotel.com wrote: ... * List all files in dir (version of Seb) My code was a bit more complex... because I need to be able to correctly take care of filenames containing spaces inside them (I'm on Windows, I never do such a thing, but there are well spaces

Re: [Orgmode] Re: [babel] How to kill two birds with one stone?

2011-02-25 Thread Nick Dokos
Nick Dokos nicholas.do...@hp.com wrote: ... It is called with a nil separator so it uses its smart mode and counts one or more whitespace characters as the separator (I wonder what would happen with a filename that contains a comma :-) Answer: nothing much. Please disregard the comma

Re: [Orgmode] Re: [babel] How to kill two birds with one stone?

2011-02-25 Thread Eric Schulte
* List all files in dir (version of Seb) Just to show, this code prints a semi-colon after every filename. #+srcname: graph-files-seb2 #+begin_src sh :results vector :var dir=graph-dir find $dir -type f -print |\ while read -r name do echo \${name##*/}\; done #+end_src

Re: [Orgmode] Re: [babel] How to kill two birds with one stone?

2011-02-20 Thread Eric Schulte
Hi, I haven't followed this discussion very closely, but I'm not sure why it would be necessary to pass data through STDIN rather than through a variable or an external file. I took a shot at the dot graph example you proposed, the following works for me over a simple example directory. Best --

[Orgmode] Re: [babel] How to kill two birds with one stone?

2011-02-07 Thread Sébastien Vauban
Hi Dan, Dan Davison wrote: Cool post. I hope someone has some good ideas in this thread. Some quick responses / questions below. Note, in the latter code block, that I did not even tried to really chain steps 2 and 3: I'm rewriting step 3, including step 2 inside it. *I certainly miss a

[Orgmode] Re: [babel] How to kill two birds with one stone?

2011-02-04 Thread Dan Davison
Hi Seb, Cool post. I hope someone has some good ideas in this thread. Some quick responses / questions below. #+TITLE: Document a shell script as separate blocks #+DATE: 2011-02-04 #+LANGUAGE: en_US * Abstract When writing shell scripts, I'd like to kill *two* birds with one

[Orgmode] Re: [babel] How to kill two birds with one stone?

2011-02-04 Thread Sébastien Vauban
Hi Dan, Myself quickly reacting on this... Dan Davison wrote: Cool post. I hope someone has some good ideas in this thread. Thanks. Once solved, this one (and many more experiments I'm jotting down) could become case studies on Worg, or so. Some quick responses / questions below. #+TITLE: