Use head and tail to Get the Start or End of Text in Bash by Cameron NokesUse head and tail to Get the Start or End of Text in Bash
egghead