Added how to uncompress a stream to stdout to the KB

This commit is contained in:
Michele Cereda
2022-10-07 10:18:57 +02:00
parent 7b4d373f89
commit be7360a9bb

View File

@@ -0,0 +1,14 @@
# Print a compressed stream to stdout
```sh
cat file.zip | zcat
cat file.zip | busybox unzip -p -
cat file.gz | gunzip -c -
curl 'https://example.com/some.zip' | bsdtar -xOf -
```
## Sources
- [Unzip from stdin to stdout]
[unzip from stdin to stdout]: https://serverfault.com/questions/735882/unzip-from-stdin-to-stdout-funzip-python