Skip to content

Instantly share code, notes, and snippets.

@dualbus
Created March 10, 2014 05:30
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dualbus/9459957 to your computer and use it in GitHub Desktop.
Save dualbus/9459957 to your computer and use it in GitHub Desktop.
#!/bin/bash
python -c '
import sys
x = sys.stdin.readlines()
try:
print(x[0].decode("utf-8"))
except Exception as e:
print(repr(e.object))
' <<< $'\xed'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment