The Using awk for advanced text processing recipe of Chapter 4, Texting and Driving, explains the awk command The Using head and tail for printing the last or first 10 lines recipe of Chapter 3, File In, File Out, explains the tail command