Embedding Python in a shell script

rusi rustompmody at gmail.com
Thu Jun 16 22:25:56 EDT 2011


On Jun 17, 6:05 am, Chris Angelico <ros... at gmail.com> wrote:

> > Python call becomes.  I'd prefer something like:
>
> #!/bin/bash
> for i in 1 2 3 4; do
>   python -c "if True:
# comfortably indented python code

Thanks. Nice!



More information about the Python-list mailing list