Learning Functional Programming in Go
上QQ阅读APP看书,第一时间看更新

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