Ed Cashin wrote on 2025-04-17 15:25: > sed can do the "head" and "tail" jobs in one go if you turn off its > "print by default" behavior with the "-n" option and then give it two > commands, "1p" to print line one, and "$p" to print the last line. Nice! Works across my full ~/ (2.8M files). I like this better and have updated my personal script with this.