gat icon indicating copy to clipboard operation
gat copied to clipboard

Fails to be a `cat` alternative

Open nekr0z opened this issue 2 years ago • 1 comments

tail -f some_log_file | cat works, tail -f some_log_file | gat doesn't.

yes | cat works, yes | gat doesn't.

cat a_file_70_GB_in_size works, gat a_file_70_GB_in_size isn't even worth trying (as you're reading the whole file into memory before processing).

Call it what it is: a console pretty-printer. It is in no way a cat alternative, not the same ballpark, not the same league, hardly even the same sport!

nekr0z avatar Apr 06 '23 08:04 nekr0z

@nekr0z As you say, gat is not a perfect replacement for cat, and there are many things that need to be improved. Indeed, the specification of reading the whole file before processing is bad... 🤔

I will consider and verify if there is a way to improve it! Thank you for opening the issue!

koki-develop avatar Apr 06 '23 09:04 koki-develop