I would like to generate sha256 hash for each log file in a folder and store that hash in a file named by the original file name suffixed with ".sha265" int he same folder.
For example, I would like to store the hash for /path/file.ext
into /path/file.ext.sha256
I succeed in generating the hashes but fail in creating the .sha256 files. Here is how are generated the hashes :
find /data/dump/ -type f -name "*.log" -exec sha256sum {} \;
Any help would be appreciated ! :)