Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

How is that different from | cat?


`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




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: