dirceu (owner)

Revisions

gist: 22927 Download_button fork
public
Public Clone URL: git://gist.github.com/22927.git
Embed All Files: show embed
bash.sh #
1
2
3
$ tree > t
$ python repeated_files_on_tree.py
 
repeated_files_on_tree.py #
1
2
3
4
5
6
7
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