learn_gnuawk
jq
Our great sponsors
learn_gnuawk | jq | |
---|---|---|
8 | 306 | |
1,052 | 25,063 | |
- | - | |
2.3 | 0.0 | |
8 months ago | 11 months ago | |
Shell | C | |
MIT License | GNU General Public License v3.0 or later |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
learn_gnuawk
-
Learn GNU awk with hundreds of examples and exercises
You can read the book online here: https://learnbyexample.github.io/learn_gnuawk/
-
Ask HN: What is the best source of documentation for Awk?
I don't know if it's the best but this resource is good - https://github.com/learnbyexample/learn_gnuawk
-
Unix legend Brian Kernighan, who owes us nothing, keeps fixing foundational AWK code | Co-creator of core Unix utility "awk" (he's the "k" in "awk"), now 80, just needs to run a few more tests on adding Unicode support
I wrote a book for GNU awk one-liners with plenty of examples and exercises. Free to read here: https://learnbyexample.github.io/learn_gnuawk/
-
Ask HN: Can I see your cheatsheet?
I use my ebooks for reference:
* GNU grep and ripgrep (https://learnbyexample.github.io/learn_gnugrep_ripgrep/)
* GNU sed (https://learnbyexample.github.io/learn_gnused/)
* GNU awk (https://learnbyexample.github.io/learn_gnuawk/)
* Ruby one-liners cookbook (https://learnbyexample.github.io/learn_ruby_oneliners/)
* Perl one-liners cookbook (https://learnbyexample.github.io/learn_perl_oneliners/)
* Command line text processing with GNU Coreutils (https://learnbyexample.github.io/cli_text_processing_coreuti...)
* Command line text processing with Rust tools (https://learnbyexample.github.io/cli_text_processing_rust/) — work-in-progress
* Computing from the Command Line (https://learnbyexample.github.io/cli-computing/) — work-in-progress
- exercises.
- A practical overview of most useful Unix tools
-
Are there any good sites for linux exercises/drills?
GNU awk
jq
-
GNU Parallel, where have you been all my life?
That should recursively list directories, counting only the files within each, and output² jsonl that can be further mangled within the shell². You could just as easily populate an associative array for further work, or $whatever. Unlike bash, zsh has reasonable behaviour around quoting and whitespace too.
¹ https://zsh.sourceforge.io/Doc/Release/User-Contributions.ht...
² https://github.com/jpmens/jo
³ https://github.com/stedolan/jq
- How do i edit reputation?
-
Jj: JSON Stream Editor
What I miss from jq and what is implemented but unreleased is platform independent line delimiters.
jq on Windows produces \r\n terminated lines which can be annoying when used with Cygwin / MSYS2 / WSL. The '--binary' option to not convert line delimiters is one of those pending improvements.
https://github.com/stedolan/jq/commit/0dab2b18d73e561f511801...
-
Building and deploying a web API powered by ChatGPT
If you have jq installed you can use it to make the output look nicer.
-
Search in your Jupyter notebooks from the CLI, fast.
It requires jq for JSON processing and GNU parallel for concurrent searches in the notebooks.
- Check the jq manual!
- mkv vs mp4 metadata
-
Amazon Begs Employees Not to Leak Corporate Secrets to ChatGPT
jq is your friend.
- Memes are all cool and all. But this is your daily remaining that 10000! =
-
How to export/import/externally-edit/whatever WI entries?
The jq command (https://stedolan.github.io/jq/) is useful pulling that information out.
What are some alternatives?
cheatsheet - 📜 A compendium of CLI commands I can't stop looking up
yq - Command-line YAML, XML, TOML processor - jq wrapper for YAML/XML/TOML documents
clmystery - A command-line murder mystery
dasel - Select, put and delete data from JSON, TOML, YAML, XML and CSV files with a single tool. Supports conversion between formats and can be used as a Go package.
dotfiles - My configuration files
gojq - Pure Go implementation of jq
goexamples - Complete golang example; sample Go code
json5 - JSON5 — JSON for Humans
rhawk - IRC bot written in GNU Awk
jp - Validate and transform JSON with Bash
gcc-xpack - A binary distribution of the GNU Compiler Collection (GCC)
nushell - A new type of shell