3 echo "$(basename $0) usage: the first parameter should be an"
4 echo "LDIF file that this script will extract email addresses from."
8 echo "$(basename $0): the file $1 does not seem to exist"
11 grep -i mail: "$1" | sed -e "s/^.*[Mm][aA][Ii][Ll]: *\(.*\)$/\1/" | tr A-Z a-z | sort | uniq | sort