- Learning Functional Programming in Go
- Lex Sheehan
- 69字
- 2021-07-02 23:13:31
Tacit programming with Unix pipes
The following combinators are the functions in the pipeline, for example, head, awk, grep, and so on. Each combinator is a function that sends output to standard out and reads input from standard in. Note that arguments are not mentioned in the command.
$ cat access10k.log | head -n 1 | awk '{print $7}' | grep "\.json" | uniq -c | sort -nr