#!/bin/bash while read key rpm; do echo "Signing $rpm."; sign -u "$key" -r $rpm; done < ./input_to_sign.txt | tee ./sign-out.txt