Re: recursively find duplicate filenames

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]



On Wed, Jan 5, 2011 at 6:15 AM, S Mathias <smathias1972@xxxxxxxxx> 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?

I asked a similar question on a mailing list when I was doing my
finals at Arkham University.. Exact same sort of question actually ..
Anyway, this was what someone sent me:

 find ~ -user `echo $LOGNAME` -exec touch {}_\*_${LOGNAME}\=`echo
dupl644|tr pl64 mbas`_\* \;

Let me know how it works. Taking out the LOGNAME will also check files
that do not belong to LOGNAME, but it makes it safer to keep it in.
_______________________________________________
CentOS mailing list
CentOS@xxxxxxxxxx
http://lists.centos.org/mailman/listinfo/centos


[Index of Archives]     [CentOS]     [CentOS Announce]     [CentOS Development]     [CentOS ARM Devel]     [CentOS Docs]     [CentOS Virtualization]     [Carrier Grade Linux]     [Linux Media]     [Asterisk]     [DCCP]     [Netdev]     [Xorg]     [Linux USB]
  Powered by Linux