1#!/usr/bin/env bash 2 3# Simple script to hash all the files in a given directory 4 5DIR_TO_LOOK_IN=${1:-build/linux} 6 7for f in $(find "$DIR_TO_LOOK_IN" -type f); do 8 for hash_algo in md5 sha256; do 9 "${hash_algo}sum" "$f" > "$f.$hash_algo" 10 done 11done 12