Execute any tool in PATH on the org-babel source code block
Find a file
2026-05-07 10:37:26 +02:00
ob-exec.el Initial commit 2026-05-07 10:37:26 +02:00
README.org Initial commit 2026-05-07 10:37:26 +02:00

ob-exec

This Org-babel mode enables to execute fragment of code with any tool, as long as it is callable from the command line within an Org-mode file.

Examples

#+begin_exec :shebang "bash"
echo "Hello, world"
#+end_exec
echo "Hello, World!"
Hello, World!
#+begin_src :shebang "awk -f {} /proc/cpuinfo"
$1 ~ "processor" {
   print $0
}
#+end_src
$1 ~ "processor" {
   print $0
}
processor	: 0
processor	: 1
processor	: 2