cxa / ob-awk-cmd

`ob-awk-cmd` provides a `:cmd` header argument to dynamically select an AWK variant for execution

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

ob-awk-cmd

Though you can customize a fixed org-babel-awk-command, ob-awk-cmd provides a :cmd header argument to dynamically select an AWK variant for execution:

#+begin_src awk :cmd gawk
BEGIN {
    print gensub(/Hello/, "Hey", "g", "Hello world")
}
#+end_src

#+RESULTS:
: Hey world

Install

Add ob-awk-cmd.el to your load-path, or use a package manager like use-package w/ quelpa:

(use-package ob-awk-cmd
  :quelpa (ob-awk-cmd :fetcher github :repo "cxa/ob-awk-cmd"))

About

`ob-awk-cmd` provides a `:cmd` header argument to dynamically select an AWK variant for execution


Languages

Language:Emacs Lisp 100.0%