Skip to content

Instantly share code, notes, and snippets.

@darkf
Created March 8, 2012 22:14
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 darkf/2003800 to your computer and use it in GitHub Desktop.
Save darkf/2003800 to your computer and use it in GitHub Desktop.
Codegolf!
# copyright 2012 darkf
import sys;_,s,h=sys.argv;[open(x,'w').writelines([y for y in open(h)if x.strip()in y])for x in open(s)]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment