#!/bin/bash for chksum in *.torrent; do gpg --homedir "/var/lib/releasekey/keys" --output "$chksum.gpg" --yes --detach-sig "$chksum" done