sed has some options that are not really known, but that are so useful

Print line 10 of a file:

sed -n 10p file

Print last line of a file:

sed -n \$p /etc/passwd

Print every other lines:

sed -n 1~2p /etc/passwd

And much more… So sometimes it’s interesting to RTFM :)