by zoidb on 10/21/24, 6:41 AM with 20 comments
by basemi on 10/21/24, 7:24 AM
[0] https://www.man7.org/linux/man-pages/man1/cat.1.html [1] https://www.elastic.co/guide/en/elasticsearch/reference/curr...
by silisili on 10/21/24, 7:14 AM
Yes, there are multiple ways to get by without cat. Are they as obvious to understand? If not, what are we doing?
Shell scripting isn't meant for performance but composability. If you're fighting me over micro optimizations, I'm just going to rewrite it in a proper language and 100x its performance. But then it's lost its readability and it's no longer editable.
Balance, like most things in life.
by jwilk on 10/21/24, 7:16 AM
by ilyagr on 10/21/24, 7:27 AM
by ChrisArchitect on 10/21/24, 9:02 AM
The useful use of cat
by vman81 on 10/21/24, 7:54 AM
head filename -n `wc -l filename`
by optymizer on 10/21/24, 7:14 AM
by its-summertime on 10/21/24, 7:42 AM
the command substitution will mangle ending newlines