Skip to content

Instantly share code, notes, and snippets.

@zain
Created July 27, 2012 21:50
Show Gist options
  • Select an option

  • Save zain/3190640 to your computer and use it in GitHub Desktop.

Select an option

Save zain/3190640 to your computer and use it in GitHub Desktop.
python -c"import os,glob; print os.path.join('.', 'path/to/file') in sum([[f[0] for f in [glob.glob(os.path.join(d[0], pattern)) for d in os.walk('.')] if f] for pattern in open('.gitignore', 'r+').read().split('\n')], [])"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment