Skip to content
lionbeePublic

About

Simple command line tool for finding and deleting duplicate files

Resources

Stars

13 stars

Watchers

1 watching

Forks

Latest commit

 

History

4 Commits

Folders and files

Repository files navigation

godedupe

Simple command line tool for finding and deleting duplicate files.

Usage

By default godedupe does a dry run.

./godedupe [options] directory
  -c Print duplicate values as a CSV to the console
  -d Delete all duplicate values
Calling without any options does a dry run and lists the files to be deleted

Dry run

./godedupe directory

This is the default mode. Files that would be deleted are printer to stdout.

CSV

./godedupe -c directory

A CSV is printed to stdout in the format: original, duplicate

Delete

./godedupe -d directory

Duplicate files are deleted and the name of the deleted files are printed to stdout.

Logic

godedupe works by walking the supplied directory. Files that have the same number of bytes are MD5 hashed. If there is a hash colission there is potentionally a duplicate file. To confirm the file is in fact a duplicate the files are compared byte by byte before proceding.

About

Simple command line tool for finding and deleting duplicate files

Resources

Stars

13 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages