[CentOS] recursively find duplicate filenames

Pintér Tibor tibyke at tibyke.hu
Wed Jan 5 11:23:00 UTC 2011


On 01/05/2011 12:15 PM, S Mathias wrote:
> find duplicate filenames in a folder
> find | perl -ne 's!([^/]+)$!lc $1!e; print if 1 == $seen{$_}++'
> 
> find duplicate filenames in a folder recursively
> ? how? 

eg:

/foo/bar.txt
/foo2/bar.txt
/foo3/bar.txt

t



More information about the CentOS mailing list