[CentralOH] Pipeness _Within_ Python

Len Jaffe lenjaffe at jaffesystems.com
Thu Aug 16 22:01:10 CEST 2012


On Thu, Aug 16, 2012 at 3:26 PM, <jep200404 at columbus.rr.com> wrote:

> How would one do the following[1] entirely within Python[2]?
>
>     python mogrify.py <(cat "$filename" \
>     | tee >(sha1sum >&3) >(wc -c >&4) /dev/null \
>     | gunzip | tee >(sha1sum >&5) >(wc -l -c >&6) /dev/null)
>
> [2] Is it the wrong thing to ask for,
>     considering Python nature and Unix shell script nature?
>     If so, what question should I ask?
>     http://www.catb.org/~esr/writings/unix-koans/ten-thousand.html
>

Why would one do that?
If the pipeline works, what do you stand to gain from converting it?

Len.




-- 
lenjaffe at jaffesystems.com   614-404-4214             www.volunteerable.net
Proprietor: http://www.theycomewithcheese.com/ - An Homage to Fromage
Greenbar <http://www.greenbartraining.org/>: Grubmaster: 2012-2009, Grub
Asst: 2008, Trained: 2007.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/centraloh/attachments/20120816/c8ef1679/attachment.html>


More information about the CentralOH mailing list