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

Handle compressed files #108

Open
vincentbernat opened this issue Oct 31, 2022 · 1 comment
Open

Handle compressed files #108

vincentbernat opened this issue Oct 31, 2022 · 1 comment

Comments

@vincentbernat
Copy link

Hey!

It would be nice to transparently handle compressed files, like json.gz or json.zstd. Either by guessing file type (with magic bytes?) or just by relying on the extension.

Thanks!

@cmawhorter
Copy link

i just came across jless today and i haven't been this happy about finding a new util in a long time... awesome.

i'll second this request with a slight tweak. i don't need built-in support for compression as long as i could do something like this:

gunzip -c /path/to/enormous/file.gz | jless
# results in:
# gunzip: /path/to/enormous/file.gz: unexpected end of file
# gunzip: /path/to/enormous/file.gz: uncompress failed
# Unable to parse input: "Parse error"

my workaround is this, which is GoodEnough for my current usage: gunzip -c /path/to/enormous/file.gz | head -n 10 | jless

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