He writes
(head -5; tail -5) <data
but that's a bit misleading. These don't work. seq 20 | (head -5; tail -5)
(head -5; tail -5) < <(seq 20)
Both giving just the first five lines.