sed equivalent of something easy in python

Lie lie.1296 at gmail.com
Wed Oct 27 12:28:16 CEST 2010


On Oct 26, 4:04 am, Daniel Fetchinson <fetchin... at googlemail.com>
wrote:

> (2) made me take care of 2 files instead of 1 from now on.

Not necessarily:

$ cat heredoc.sh
#!/usr/bin/env bash
python << 'EOF'
print "hello world"
def foo():
    print "foo()"
foo()
EOF
$
$ ./heredoc.sh
hello world
foo()



More information about the Python-list mailing list