#!/bin/sh
for f
do	s=`egrep '^Subject: .*\.sh.* of .*' $f`
	if [ -n "$s" ];then
		n=`expr "$s" : 'Subject: \(.*\) of`
		Mv $f $n
		echo File: $f'	==> '$n
	else
		echo File: $f
	fi
done
exit 0
#	sharmail [file]...
#
# Given a list of files, this script examines each for a line of the form:
#    Subject: smail3.sh01 of 57
# When one is found, it is renamed as the appropriate file.
