[clue] Pipes and compression

jacob jborer at gmail.com
Fri Dec 16 22:45:04 MST 2011


Easy:

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?
>

bash:
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:
> http://cluedenver.org/mailman/listinfo/clue
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://cluedenver.org/pipermail/clue/attachments/20111216/8f2365e6/attachment.html 


More information about the clue mailing list