Timeline for answer to Useless use of cat? by user unknown
Current License: CC BY-SA 3.0
Post Revisions
5 events
| when toggle format | what | by | license | comment | |
|---|---|---|---|---|---|
| Jun 20, 2020 at 9:12 | history | edited | CommunityBot |
Commonmark migration
|
|
| Nov 19, 2019 at 22:51 | comment | added | oguz ismail |
In this invocation cat file | wc -c, wc needs to read stdin until EOF, counting bytes. But in this, wc -c < file, it just stats stdin, finds out it's a regular file and print st_size instead of reading any input. For a large file the difference in performance would be clearly visible.
|
|
| Apr 6, 2019 at 6:13 | comment | added | necromancer |
+11111 .. As the author of the currently accepted answer, I highly recommend this delightful complement. The specific examples elucidate my often abstract and wordy arguments, and the laugh you get from the author's early trepidation of file > a.sh is alone worth the time reading this :) Thanks for sharing!
|
|
| Jan 12, 2019 at 18:37 | history | bounty awarded | djechlin | ||
| Mar 13, 2018 at 10:46 | history | answered | user unknown | CC BY-SA 3.0 |