Right, does it do things faster? Or somehow more efficiently?
It seems that this is probably slower and consumes far more resources than cat. It also does pretty printing and syntax highlighting. From a Unix standpoint, I would say this is not a cat replacement but a pretty replacement.
I just tried both gat and bat to see if they could really replace cat (spoiler: they cannot — unlike cat they soak up all input before outputting anything, and crash with out of memory very quickly).
A cat alternative would have to handle this correctly:
$ </dev/zero cat >/dev/null
or it's not really a cat alternative. (Yes, variations on this theme are very useful in scripts and daily shell hacking).
Totally off-topic, but: flying rats are so cute. I didn't realize that until we started getting some that would hang in the alcove, above our door, in the summer occasionally. They aren't really a threat either. As long as you don't go out of your way to bug them, they just sleep cozily. The button noses are great.
Given that a `gat` has both an input-side and an output-side, I think it resembles `cat` reasonably well. I'd expect some kind of buffering difference so that the output is "faster" than the input in some way.
Looks like the connotation in your head is really obscure, because the downvoters (I'm guessing), a sibling commenter, and I are wondering why "gat" could mean "delete"?
The dictionary definition of "gat" is "revolver", does that really qualify as "obscure"?
Anyways, in terms of usage I've heard, it is almost exclusively implying you'll brandish and/or apply your gun, maybe this part is more obscure, but if I wrote "stab myfile" I don't think you'd expect me to put the contents in a buffer.
I don't really find that command names reliably relate to words. Offhand none of these would do what I expect: curl, top, git, gawk. less is a more featureful more, and who knows what an xxd is. Certainly not a dead four eyed monster with its tongue hanging out.
stab is probably Send To A Buffer, just like grep is Global Regular Expression Print
Well I had to check the dictionary to see what you mean.
"stab" would be obvious, but maybe someone needs to go out and ask 100 or a 1000 people on the street what they think of when they hear the word "gat", and maybe then you can congratulate yourself for being in an exclusive minority.
Perhaps it's not fully mainstreamed, but looking at the current conversation it looks to me like the idea is widespread. Really though, I also see no other other usages of the term online, it surprises me you would not simply type in "gat" to a search engine and easily understand my point.
There's dictionary definition and there's well known usages. In the dictionary "retard" means to slow down or hinder, but if I said "Stop retarding my progress", a "mainstream person" would probably be offended.
Anyway, to end the discussion, I guess the downvotes have other causes, and it'll remain a mystery to both of us.
That’s exactly what I’m saying. There IS no other usage of “gat”, just look online, it exclusively is referring to guns. What kind of counter argument is an incorrect analogy misstating something already spoken?