Common lines between 2 files

awk 'NR==FNR{a[$0]; next} $0 in a' colors_1.txt colors_2.txt

http://archive.vn/mmd80

I've recently modified and published that tutorial as an ebook [1], which can be read from the github repo or downloaded as PDF (currently free). I am also updating the book to include exercises, other minor improvements as well as epub version - expected release by next weekend.

[1] https://github.com/learnbyexample/learn_gnuawk