$ grep -v "'s" < /usr/share/dict/words | sort -R | head -n 4 #xkcd936
miniblog.
Related Posts
I'm changing method definition syntax in my language:
// old
fun (this: Int) inc(): Int { this + 1 }
// new
method inc(this: Int): Int { this + 1 }
The original syntax was inspired by Go, but the new syntax is more grep-friendly and perhaps more readable. Not sure about the verbosity though. Thoughts?
I frequently find myself running:
$ slowish
$ slowish | jq
$ slowish | jq | grep
I feel there must be a better way to build up pipelines incrementally without re-running.
I could save each output to a file, but it's more verbose, and most of these tools have nicer output when stdout is a TTY.
JSON Lines is such a delight to use. It's particular nice as a CLI interop format.
You can use dumb, fast tools (e.g. grep to quickly filter large outputs) as well as structured tools (e.g. jq).