| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Name | Name | Last commit date | ||
|---|---|---|---|---|
Directories with name '$RECYCLE.BIN' are ignored. Linux sees some MS Windows directories as executable only, a user or app can go into them but can't read them. If the Windows "executable only" directory is user accessible, it be easily corrected by respondiong to "You don't currently have permission to access this folder". If the directory is not user accessible then its probably a system directory that is not worth checking for dulicate files.
The following reports are generated in CSV format for easy processing with spreadsheets and scripts. See OUTPUTS section for more information.
If no duplicates are found or the reporting option (-r) is used, only the all files processed report (all_files_<date-time>.csv) and the basic log (log_<date-time>.txt) are produced.
To move or remove duplicate files there are some suggestions in How to delete duplicate files using the duplicateFF_KeepCopy and duplicateFF_RemoveALL scripts in this repository.
Foreign Language Characters: If Microsoft Excel is the default application for CVS files, Microsoft Excel will not display foreign language characters correctly. To fix this problem, change the default app for CSV files to Notepad or Wordpad and manually import into excel, alternatively rename *.csv file to a *.txt and manually import into Microsoft Excel. Do not attempt to use Open with and select Excel, it always has to be an Import.
duplicateFF -f '.mp4' -m 300 -s './video/' -s '/home/fred/downloads' -l 0
duplicateFF -l 3 -f '.jpg' -s .
Note: -s . could be replaced with -s $PWD or the full path. The search filter will process both the .jpg and .JPG files
Inputs of 'filter' 'source directory' 'output directory' should have single or double quotes otherwise any names with spaces will not be processed.
Manditory Options
-l Search level
-s Directories to process
One or many directories can be entered each must start with -s.
Optional Options
-r Report number of duplicates
An optional paramater that records the total files processed and the total number of duplicatres to the log (log_.txt). No other reports are produced.
-f File name filter
Optional case insensitive filter, filter the source by part or the whole name of a file. This option can only be used once.
Maximum file size filter
Maximum file sixe filter is optional, default is 20 GiB. Ignoring large files can save time.
-k or -K kilobytes (KiB)
-m or -M megabytes (MiB)
-g or -G gigabytes (GiB)
Additional Notes
Output directory created in current directory with name duplicate_chk_<date-time> where date-time = yymmdd-HHMMSS.
The output directory contains four reports and one log file. If there are no unique files found, the Unique files report will not be produced:
| Report type | Report file name | CSV Format |
|---|---|---|
| Duplicate files #1 | duplicate_FILES1_<date-time>.csv | One file per row - see table |
| Duplicate files #2 | duplicate_FILES2_<date-time>.csv | One SHA256 checksum per row - see table |
| All files checked | all_files_<date-time>.csv | check_sum,"<full path>/<file name>" |
| Unique files | unique_files_<date-time>.csv | check_sum,"<full path>/<file name> " |
| Basic log | log_<date-time>.txt |
Duplicate files #1 One file per row
| CSV field (column) | Attribute |
|---|---|
| 1 | SHA256 checksum |
| 2 | fully pathed file name |
| 3 | full path of containing directory |
| 4 | file size in KiB |
Duplicates files #2 One SHA256 checksum per row
| CSV field (column) | Attribute |
|---|---|
| 1 | SHA256 checksum |
| 2 | file size in KiB |
| 3 | file 1 - fully pathed file name |
| 4 | file 1 - full path of containing directory |
| 5 | file 2 - fully pathed file name |
| 6 | file 2 - full path of containing directory |
| 7 | file 3 - fully pathed file name |
| 8 | file 3 - full path of containing directory |
| 9 | file 4 - fully pathed file name |
| 10 | file 4 - full path of containing directory |
| etc | more added as required |
Each CSV line has a minimum of two files, If more files match the checksum they are added as columns in pairs i.e. repeats of columns 3 and 4.
| Back | FazBrowse Home | New Git URL |