[CentOS] recursively find duplicate filenames
Kwan Lowe
kwan.lowe at gmail.comWed Jan 5 17:39:17 UTC 2011
- Previous message: [CentOS] recursively find duplicate filenames
- Next message: [CentOS] cron jobs fail to run
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
On Wed, Jan 5, 2011 at 6:15 AM, S Mathias <smathias1972 at yahoo.com> 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? Try this one: perl -e 'BEGIN{$|=1;$f=$ARGV[0];$s=(stat$f)[7];$t=time} while(sleep 1){printf"\r$f %s bytes at %.2f Kb/s ", $_=(stat$f)[7],($_-$s)/1024/(time-$t)}' Give it a few minutes to process if it's a large directory...
- Previous message: [CentOS] recursively find duplicate filenames
- Next message: [CentOS] cron jobs fail to run
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the CentOS mailing list