Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.debian.user > #201241 > unrolled thread

(solved) Re: any program that search for same files?

Started byLong Wind <longwind2@yahoo.com>
First post2018-10-15 00:40 +0200
Last post2018-10-15 10:40 +0200
Articles 2 — 2 participants

Back to article view | Back to linux.debian.user

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

  (solved) Re: any program that search for same files? Long Wind <longwind2@yahoo.com> - 2018-10-15 00:40 +0200
    Re: (solved) Re: any program that search for same files? Andy Smith <andy@strugglers.net> - 2018-10-15 10:40 +0200

#201241 — (solved) Re: any program that search for same files?

FromLong Wind <longwind2@yahoo.com>
Date2018-10-15 00:40 +0200
Subject(solved) Re: any program that search for same files?
Message-ID<wIXdf-7Wd-1@gated-at.bofh.it>

[Multipart message — attachments visible in raw view] — view raw

 Thank The Wanderer!
i've just installed rdfind, and i'll try it.


    On Monday, October 15, 2018, 6:19:54 AM GMT+8, The Wanderer <wanderer@fastmail.fm> wrote:  
 
 On 2018-10-14 at 18:06, Long Wind wrote:

> given two directories, the program can print files that are in both
> directories
> 
> to make it easy, if file name and size are same, then they are same
> 
> i've to admit my memory is poor, if good, who need such program?
> 
> i'm about to write it in java, it can be completed in a few hours but
> i think there might be simple solution

Sounds like a perfect case for rdfind.

-- 
  The Wanderer

The reasonable man adapts himself to the world; the unreasonable one
persists in trying to adapt the world to himself. Therefore all
progress depends on the unreasonable man.        -- George Bernard Shaw
  

[toc] | [next] | [standalone]


#201253

FromAndy Smith <andy@strugglers.net>
Date2018-10-15 10:40 +0200
Message-ID<wJ6zT-55F-3@gated-at.bofh.it>
In reply to#201241
Hello,

On Sun, Oct 14, 2018 at 10:37:10PM +0000, Long Wind wrote:
>  Thank The Wanderer!
> i've just installed rdfind, and i'll try it.

Also rmlint:

    https://rmlint.readthedocs.io/en/latest/index.html

> > i'm about to write it in java, it can be completed in a few hours but
> > i think there might be simple solution

Depending on exactly what you want to achieve and what "duplicate"
really means to you, it can be more complex than you at first think:

    https://rmlint.readthedocs.io/en/latest/cautions.html

Also if using btrfs or XFS and recent kernel you may want consider
duplicate finders that can make use of FIDEDUPERANGE ioctl:

    http://man7.org/linux/man-pages/man2/ioctl_fideduperange.2.html

I know rmlint and duperemove can do this:

    https://github.com/markfasheh/duperemove

Maybe others.

Cheers,
Andy

-- 
https://bitfolk.com/ -- No-nonsense VPS hosting

[toc] | [prev] | [standalone]


Back to top | Article view | linux.debian.user


csiph-web