I would like to use python for things I\'ve been doing using bash. Is it possible to use the -c switch for long programs, e.g. a for loop with two statements? This would let
When used inside a script, I think it would be better to have python read the script from standard input, like so:
#!/bin/bash python - arg1 arg2 <
This uses bash's HEREDOC syntax.