Spanish Busca todos los archivos, obtiene su hash, lo almacena y compara todos los archivos para ver si existe repetidos; en caso de que existan repetidos, lo indica en un archivo, con su nombre y ruta, los que son iguales en su hash
English It searches all the files, obtains its hash, stores it and compares all the files to see if there are duplicates; in case there are duplicates, it indicates it in a file, with its name and path, which are the same in its hash
# It will search inside the path and exclude all files .gitignore and archivo.txt
analyzer <path> -x ".gitignore,archivo.txt" -r
# It will search inside the path, this help to know if you have the same files in your libs. will save in csv file
analyzer <path> $HOME/Arduino -r -o csv
# It will search inside the path and exclude all files .gitignore and folder node_modules,. will save in json file
analyzer <path> -x ".gitignore,node_modules" -r -o json
--help Provide help
-p, --path=</home/> path to search
(defaults to ".")
-r, --recursive Search into directory
-h, --hash
[md5] Hash MD5
[sha256] (default) Hash SHA256
-x, --exclude=<node_module,.gitignore> List of folders or files to exclude in search
Example
-x "node_module,.gitignore,*.txt"
-o, --output=<csv> Type of file to save the information
[csv] Save file csv
[json] Save file array json
[sqlite] Save in db SQLite
[stdout] (default) Throw to terminal
You have in your PATH
=> $USER/.local/bin
Install to $USER/.local/bin
# download bin
wget https://raw.githubusercontent.com/jalmx/analyzer_files/master/release/analyzer_lastest -O $HOME/.local/bin/analyzer
# Make executable
sudo chmod +x /$HOME/.local/bin/analyzer
Download repository
git clone https://github.com/jalmx/analyzer_files
Change to folder
cd ./analyzer_files
Download the dependencies
dart pub get
Compile to bin
dart compile exe bin/main.dart