|
|
|
|
|
by benatkin
1190 days ago
|
|
What's natural about cat on only one file? > Briefly, here's the collected wisdom on using cat: > The purpose of cat is to concatenate (or "catenate") files. If it's only one file, concatenating it with nothing at all is a waste of time, and costs you a process. The fact that the same thread ("but but but, I think it's cleaner / nicer / not that much of a waste / my privelege to waste processes!") springs up virtually every time the Award is posted is also Ancient Usenet Tradition. https://porkmail.org/era/unix/award |
|
It's about building the query, really. Here is example:
"Oh, it's too big, I only care about these messages" "don't care about old stuff, show me the new one" "hmm, show me when it started, and let's ignore monitoring checks" "okay, but maybe log was rotated ? Let's see last week" "hmm, it's some old error, let's search some more logs" (zcat will auto add .gz if not passed)You can't for example do