Last active
March 3, 2017 16:07
-
-
Save hisplan/5abbc8fd0c49a290fdb24295b6be866b to your computer and use it in GitHub Desktop.
Python: read from stdin
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
echo "hello" | python -c "import sys; sys.stdout.write( sys.stdin.read() )" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment