mirror of
https://gitea.com/mcereda/oam.git
synced 2026-02-09 05:44:23 +00:00
Added how to uncompress a stream to stdout to the KB
This commit is contained in:
14
knowledge base/print a compressed stream to stdout.md
Normal file
14
knowledge base/print a compressed stream to stdout.md
Normal 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
|
||||||
Reference in New Issue
Block a user