#	--- Unix shelll script
# append messages that have been uploaded to GEnie to the "rep" file
#
for i in ZG*.tmp Z003*
do
cat -s $i >>rep
rm -f $i
cat <<F >>rep

F
done
#
# search the capture file for selected keywords
#
egrep 'Yam[^a]|[^A-Z]OMEN[^A-Z]|Omen|[ -]YAM|[fF]orsberg|[izIZ]-*[mM]odem|[IZ]-*MODEM|GSZ|gsz|Gsz|DSZ|dsz|Dsz|[zZ][cC][oO][Mm][mM]'  gen*.tmp > subsgenie
echo '------------------------------------' >> subsgenie
#
# Generate a sorted list of subjects that were discussed
#
nice -20 egrep '^Sub: ' gen*.tmp | sed -e 's/^Sub: *//' |sort -dfu >> subsgenie

