note •
Bash For Loop
Using bash for loops to iterate over files, like getting SHA256 hashes of ISOs
Bash For Loop
For loop on folder of ISOs to get sha256sum hashes of each one. I used this to get the hashes of ISOs stored on my Proxmox server. I needed them for a packer script that was part of The Homelab Almanac
for filename in $(ls /var/lib/vz/template/iso/); do sha256sum /var/lib/vz/template/iso/$filename >> isosha.txt; done