3 ms·
How is that different from | cat?
by yjftsjthsd-h 5y ago
How is that different from | cat?
- efreak 5y ago`cat` will begin output immediately. `tac` buffers the entire input in order to reverse the line order before printing it. Piping through tac ensures EOF is reached, while piping through tac a second time puts the lines back in order