Go to file
2023-11-14 11:56:02 +01:00
.gitignore optimized structure and created test script 2023-11-14 11:06:43 +01:00
create_test_structure.py optimized structure and created test script 2023-11-14 11:06:43 +01:00
delete_duplicates.sh Added content 2023-06-28 11:51:06 +02:00
LICENSE Initial commit 2023-06-28 11:44:43 +02:00
list_duplicates.sh Removed bug 2023-06-28 12:00:37 +02:00
main.py Added linebreak to make it easier readable 2023-11-14 11:56:02 +01:00
README.md Update README.md 2023-06-28 12:05:50 +02:00

Duplicate File Handler

This repository contains two bash scripts for handling duplicate files in a directory and its subdirectories.

The scripts may need to be modified depending on the specific requirements of your system or the specific use case. They currently operate by comparing the MD5 hash of files to find duplicates, which is a common but not foolproof method.

Author

Kevin Veen-Birkenbach

This repository was created with the help of OpenAI's ChatGPT.

Setup

These scripts will help you manage duplicate files in your directories. Please make sure to adjust permissions on the scripts to be executable with chmod +x list_duplicates.sh delete_duplicates.sh before running.

Usage

1. List Duplicate Files

list_duplicates.sh is a script to list all duplicate files in a specified directory and its subdirectories. For text files, it will also display the diffs.

./list_duplicates.sh /path/to/directory

2. Delete Duplicate Files

delete_duplicates.sh is a script to find and delete duplicate files in a specified directory and its subdirectories. It will ask for confirmation before deleting each file and display the paths of its duplicates.

./delete_duplicates.sh /path/to/directory

License

This project is licensed under the terms of the GNU Affero General Public License v3.0.