Manuals

This page contains the manuals of the tools within the samesame collection. The tools are deviced in to two groups: duplicate file finders and action driven tools.

Duplicate file finders

Samearchive
reads a list of filenames (from stdin) and a list of directories (from the paramenters). And reports the identical files if, and only if, they have the same relative path.
Example: find /backup/arch* | samearchive -ivvv arch1 arch2
Samearchive-lite
reads a partial list of filenames and directories (from the paramenters). And combines the partial list with the parameters to get a full list. And reports the identical files if, and only if, they have the same relative path.
Example: find /backup/arch1 | samearchive-lite -vvv arch1 arch2
Samefile
reads a list of filenames (from stdin) and reports the identical files. And reports a full list of identical files on the output.
Example: find / | samefile -ivvv

Action driven tools

These tools all read the samefile output (each line containing two files that are identical) that the duplicate file finders output and perform some action. The can be split in nodes and leafs. When the latter consumes the lines when they succeed in perorming the actions. And the nodes don't.

The nodes are:

Samechflags
frees up the waisted disk space by relinks one to the other.
Example: find / | samefile -i | sameflags -n noschg | sameln -vn
Samechmod
frees up the waisted disk space by relinks one to the other.
Example: find / | samefile -i | samechmod -n g+w | sameln -vn
Samechown
frees up the waisted disk space by relinks one to the other.
Example: find / | samefile -i | samechown -n root:wheel | sameln -vn Samedelay
delays the output of match lines for a while.
Example: find / | samefile -i | samedelay | sameln -vn

The leafs are:

Samecp
copies the first file of a pair of identical files to another location
Example: find / | samefile -i | samecp -lvn
Sameln
frees up the waisted disk space by relinks one to the other.
Example: find / | samefile -i | sameln -vn
Samemv
moves the first file of a pair of identical files to another location
Example: find / | samefile -i | samemv -vn
Samerm
removes the last file of identical files to free disk space
Example: find / | samefile -ir | samerm -vn
Table of Contents