3 echo "Usage: $0 mail.aliases"
8 if test -f /etc
/aliases
; then
9 # don't work with temp fils, so they can't get hijacked.
10 # sorry users with megabytes of aliases.
11 NLINES
=`cat /etc/aliases | \
16 sed -e "s;:root;,room_aide;" \
19 for ((i
=1; i
<= $NLINES; i
++)); do
20 ALIAS
=` cat /etc/aliases | \
25 sed -e "s;:root;,room_aide;" \
26 -e "s;:;,;" |head -n $i |tail -n 1`
27 ORG
=`echo $ALIAS|sed "s;,.*;;"`
28 if grep "$ORG" "$CITALIAS"; then
29 echo "Ignoring Alias $ORG as its already there"
31 echo "$ALIAS" >>$CITALIAS
35 echo "no /etc/aliases found."