#!/bin/bash # this script will process each parameter deleting it from mailq until it runs out of parameters. # avoids having to keep putting -d on postsuper if [[ "X" == "X$1" ]] then echo "usage: ${0} " exit fi while [[ "X" != "X$1" ]] do postsuper -d $1 shift done