6 ms·
Oh this is great, I remember z for gzip but always have to look up J vs j for bzip2/xz
by yourad_io 4y ago
Oh this is great, I remember z for gzip but always have to look up J vs j for bzip2/xz
- cb321 4y agoWith https://github.com/c-blake/nio/blob/main/utils/catz.nim 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..