[Top][All Lists]

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

Patch that adds a new test to find

From: address@hidden
Subject: Patch that adds a new test to find
Date: Sun, 4 Apr 2010 20:38:16 +0200


I have written a small patch (against findutils 4.4.2) that
adds a switch to find (namely, -samecontent) in order to find
duplicates of a file.  In other words, the command

  find -samecontent FILENAME

is now roughly equivalent to

  find -type f -exec cmp -s FILENAME '{}' \; -print

except that there is no need for find to fork a new process
for every file to check.  I have implemented the feature by
incorporating code from GNU cmp.  Of course, my patch is still
in an experimental state, hence I would greatly appreciate any
suggestions or help.

Thanks in advance,
Roberto Reale

Attachment: find-samecontent.diff
Description: Text Data

reply via email to

[Prev in Thread] Current Thread [Next in Thread]