#!/bin/sh

#how to use: processes an address file in the form of all.txt
#type: sh createdlists.sh all.txt >nameof the dlistfile

echo "; Errors guna"  
echo "  Distribution-errors-to: guna@andrew.cmu.edu"
echo "  "
echo "  Distribution-content:"
cat $1 | 
while read recd
do
  s=`echo $recd | cut -d"," -f2` 
  echo "     $s@andrew.cmu.edu," 
done
