Quote:
Originally Posted by rchinn This shell script should do what you're looking for. We have the same problem you do with bounced messages but I never thought to write a script to help with it. This works for me on 5.0.11: Code: #!/bin/bash
SEARCHSTRING="user@domain.tld"
for list in `zmprov gadl`
do
results=`zmprov gdl $list | grep "Address" | cut -d " " -f 2 | grep "$SEARCHSTRING"`
if [ ! -z $results ]
then
echo $list - $results
fi
done |
I tried this script and I get
Usage: grep [OPTION]... PATTERN [FILE]...
/path/filename: line 9: email@domain: command not found.
I am on 5.0.8
dj