Skip to content

Instantly share code, notes, and snippets.

@matlinuxer2
Forked from LCamel/gist:2924033
Created June 13, 2012 16:04
Show Gist options
  • Save matlinuxer2/2924990 to your computer and use it in GitHub Desktop.
Save matlinuxer2/2924990 to your computer and use it in GitHub Desktop.
tmp=$(cat <<EOPY
import sys
for line in sys.stdin:
print line.replace( 'asdf', 'ASDF' )
print(line)
EOPY)
echo "asdf.asdf.asdf.e" | python -c "$tmp"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment