Created
November 7, 2008 18:01
-
-
Save dirceu/22927 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ tree > t | |
$ python repeated_files_on_tree.py |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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