Hacker News new | ask | show | jobs
by yourad_io 1496 days ago
Oh this is great, I remember z for gzip but always have to look up J vs j for bzip2/xz
1 comments

With https://github.com/c-blake/nio/blob/main/utils/catz.nim you can get similar format agnostic decoding/decompression not just in tar but in any pipeline context based on magic numbers, not filename extensions and even doing the copy loop needed for unseekable inputs to replace the early read -- e.g. cat foo.gz|catz|less works..