Is it possible to compress (create a compressed archive) data while reading from stdin on Linux?
This question is related to
linux
stdin
compression
Yes, gzip
will let you do this. If you simply run gzip > foo.gz
, it will compress STDIN to the file foo.gz. You can also pipe data into it, like some_command | gzip > foo.gz
.
gzip > stdin.gz
perhaps? Otherwise, you need to flesh out your question.
Source: Stackoverflow.com