Skip to content

Instantly share code, notes, and snippets.

@agumonkey
Created May 4, 2015 12:42
Show Gist options
  • Save agumonkey/cd39e2a6b86d42cddeec to your computer and use it in GitHub Desktop.
Save agumonkey/cd39e2a6b86d42cddeec to your computer and use it in GitHub Desktop.
python3 shell pipe emulator
# @>>> 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