The files that remain unique are: file1.txt, document.pdf, image.jpg.
The files that remain unique are: file1.txt, document.pdf, image.jpg.
You have many photos organized in folders, but after recent backups, you now have a main folder with all the family pictures. To see which ones are still unclassified, you can search through that main directory and list the files that haven’t been assigned a category yet.
You can create a script to look through a folder on UNIX systems and find files that match a search term. There are numerous approaches to achieve this.
Here are the hashes for the categorized files, along with their paths:
- Folder 1:
- File: /path/to/file1.txt
Hash: a1b2c3d4e5f6...
- Folder 2:
- File: /path/to/file2.pdf
Hash: 9abc1234...
- Folder 3:
- File: /path/to/file3.docx
Hash: 5f6d7e8...
No duplicates found in the comparison list.
You might want a CLI tool such as fdupes to check the folder they're in. As mariushm mentioned, this utility performs hash comparisons. Be aware that using the -d option will remove duplicates. Use it only if you truly need it. I left it out of the examples. For more details, see the links for fdupes. To install: sudo apt-get install fdupes. Example command: fdupes --recursive --sameline /path/to/photos. You can also send the results to a file: fdupes --recursive --sameline /path/to/photos > /home/$USER/fdupes_out.txt. Learn more in the tutorial here: https://www.tecmint.com/fdupes-find-and-...s-in-linux and documentation at https://linux.die.net/man/1/fdupes.