[clue] Pipes and compression
jborer at gmail.com
Fri Dec 16 22:45:04 MST 2011
man bash - section process substitution
On Fri, Dec 16, 2011 at 8:18 PM, Jason Friedman <jason at powerpull.net> wrote:
> I am using an application that allows me to back up its contents using
> a command:
> $ backup --user=user --pass=password --outputfile=/path/to/my/backup
> --outputfile is a mandatory option, I cannot redirect to STDOUT.
> The output is large and I compress after-the-fact. Is there a way to
> use a pipe as "outputfile" and backup-and-compress in a single step?
backup -user=user -outputfile=>(gzip -c - >/path/to/backup.gz)
> clue mailing list: clue at cluedenver.org
> For information, account preferences, or to unsubscribe see:
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the clue