Created
May 4, 2015 12:42
-
-
Save agumonkey/cd39e2a6b86d42cddeec to your computer and use it in GitHub Desktop.
python3 shell pipe emulator
This file contains 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
# @>>> Pipe() | ['echo', 'foo bar baz'] | ['grep', 'a'] | None | |
# b'foo bar baz\n' | |
# @>>> Pipe() | ['echo', 'foo\nbar\nbaz'] | ['grep', 'a'] | None | |
# b'bar\nbaz\n' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment