https://github.com/cxa/ob-awk-cmd
`ob-awk-cmd` provides a `:cmd` header argument to dynamically select an AWK variant for execution
https://github.com/cxa/ob-awk-cmd
Last synced: 3 months ago
JSON representation
`ob-awk-cmd` provides a `:cmd` header argument to dynamically select an AWK variant for execution
- Host: GitHub
- URL: https://github.com/cxa/ob-awk-cmd
- Owner: cxa
- Created: 2024-01-08T04:08:36.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2024-01-08T06:17:30.000Z (over 2 years ago)
- Last Synced: 2025-03-02T01:44:50.438Z (over 1 year ago)
- Language: Emacs Lisp
- Size: 1000 Bytes
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# 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:
```org
#+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`:
```elisp
(use-package ob-awk-cmd
:quelpa (ob-awk-cmd :fetcher github :repo "cxa/ob-awk-cmd"))
```