doppel

module
v0.0.0-...-444f1c3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 9, 2024 License: MIT

README

doppel

An utility to find files with different names but same contents

Build

To build the main executable:

go build cmd/doppel

Usage

Basic usage is to run with the directories you want to search as arguments:

./doppel dir1/ dir2/

The directories will be recursively searched according to the rules of Golang's Walkdir.

The format of the output is:

HASH_HEX
[TAB]filepath_1
[TAB]filepath_2
HASH_HEX_2
[TAB]filepath_1
[TAB]filepath_2
[TAB]filepath_3
...

where the HASH_HEXes are the sum of the files (currently BLAKE3-256). If two or more files share the same hash, they are considered doppelgangers.

There's also an "uniques" mode, where files that didn't have a doppelganger are printed. For that, the paths are simply printed:

filepath_1
filepath_2
filepath_3
...

Run ./doppel -h for other options.

Directories

Path Synopsis
cmd
pkg

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL