#!/bin/bash SENDER="$1" [ -z "$SENDER" ] && echo "Usage : $0 [sender]" && exit 1 mailq|egrep '^[A-Z0-9]'|grep "$SENDER"|awk '{print $1}'|tr -d '*'