Skip to content

Instantly share code, notes, and snippets.

@dirceu
Created November 7, 2008 18:01
Show Gist options
  • Save dirceu/22927 to your computer and use it in GitHub Desktop.
Save dirceu/22927 to your computer and use it in GitHub Desktop.
$ tree > t
$ python repeated_files_on_tree.py
files = [i.split()[-1] for i in open('t','r').readlines()]
files_set = set(files)
for f in files_set:
size = len([i for i in files if i == f])
if size > 1:
print f
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment