September 9, 2020 • UNIX, C
tac is cat spelled backwards it prints the contents in reverse order. How is input to a pipe reversed?
tac is cat spelled backwards it prints the contents in reverse order.
tac
cat
How is input to a pipe reversed?
It’s written to a seekable tempfile first: github.com/coreutils/.../tac.c
(This post is a mirror of a Hacker News comment I wrote.)