Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fails to be a cat alternative #22

Open
nekr0z opened this issue Apr 6, 2023 · 1 comment
Open

Fails to be a cat alternative #22

nekr0z opened this issue Apr 6, 2023 · 1 comment

Comments

@nekr0z
Copy link

nekr0z commented Apr 6, 2023

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!

@koki-develop
Copy link
Owner

@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!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants