Found in 2 comments on Hacker News
henrik_w · 2018-12-17 · Original thread
There is also the book "Exercises in Programming Style" that uses the term frequency problem to illustrate 33 different programming paradigms (including a shell solution).

https://www.amazon.com/Exercises-Programming-Style-Cristina-...

Fresh book recommendations delivered straight to your inbox every Thursday.