Programs: shell libraries

From wikinotes
Revision as of 19:53, 23 September 2023 by Will (talk | contribs) (→‎Testing)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Bash doesn't exactly have libraries per se, but there are some bash-front ends to libraries (like curses) that allow you to interact with them from shellscripts.

UI

dialog (shell) bash interface for the curses library
bash-oo-framework OOP, exceptions, etc in bash
tput get info from the termcap db

Structured Text

jq parse json
yq parse yaml
tomlq parse toml
dasel parse json, yaml, toml, xml, csv. no external deps.
csvsql SQL queries to CSV files

Testing

bats test framework for bash