Skip to content

Instantly share code, notes, and snippets.

@flaviocdc
Created April 17, 2012 20:41
Show Gist options
  • Save flaviocdc/2408862 to your computer and use it in GitHub Desktop.
Save flaviocdc/2408862 to your computer and use it in GitHub Desktop.
#!/usr/bin/python2
import sys
for line in sys.stdin:
for s in line.split(" "):
if s.startswith("$(") and s.endswith(")"):
print s
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment