I would like to simulate GNU\'s head -n -3, which prints all lines except the last 3, because head on FreeBSD doesn\'t have this feature. So I am t
head -n -3
head
Nobody seems to have use sed and tac, so here's one:
sed
tac
$ seq 10 | tac | sed '1,3d' | tac 1 2 3 4 5 6 7