Generate SHA256 checksum for FLAC files (find)
find . -maxdepth 1 -type f -name "*.flac" -exec bash -c 'sha256sum "$1" | sed "s|./||" > "$1.sha256"' _ {} \;
Finds FLAC files in the current directory, generates a SHA256 checksum for each file, and saves the checksum to a separate .sha256 file, truncating the ./ from the file path.