Script in bash which obtains get hash values of entire folders.
- Man page
- Usage
- Take the arguments for:
- Folder to hash
- File where save the hash value
- Remove temporaly files at the end
MIT
Francisco Granados gzfrancisco.name @gzfrancisco
Script in bash which obtains get hash values of entire folders.
MIT
Francisco Granados gzfrancisco.name @gzfrancisco
| #! /usr/bin/env bash | |
| find ./folder -type f > ./files_only.txt | |
| IFS=$'\n' read -d '' -r -a lines < ./files_only.txt | |
| for (( i=0; i < ${#lines[@]}; i++)) | |
| do openssl sha -sha384 "${lines[$i]}" >> hash_files_only.txt | |
| done |