Easy:<div><br></div><div>man bash - section process substitution<div><br></div><div><div class="gmail_quote">On Fri, Dec 16, 2011 at 8:18 PM, Jason Friedman <span dir="ltr">&lt;<a href="mailto:jason@powerpull.net">jason@powerpull.net</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">I am using an application that allows me to back up its contents using<br>
a command:<br>
$ backup --user=user --pass=password --outputfile=/path/to/my/backup<br>
<br>
--outputfile is a mandatory option, I cannot redirect to STDOUT.<br>
<br>
The output is large and I compress after-the-fact.  Is there a way to<br>
use a pipe as &quot;outputfile&quot; and backup-and-compress in a single step?<br>
</blockquote><div><br></div><div>bash:</div>backup -user=user -outputfile=&gt;(gzip -c - &gt;/path/to/backup.gz)<br><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
_______________________________________________<br>
clue mailing list: <a href="mailto:clue@cluedenver.org">clue@cluedenver.org</a><br>
For information, account preferences, or to unsubscribe see:<br>
<a href="http://cluedenver.org/mailman/listinfo/clue" target="_blank">http://cluedenver.org/mailman/listinfo/clue</a><br>
</blockquote></div><br></div></div>