You both are on the right track as to what I am trying to do...
the code is as follows for the script I am working on:
rm /tmp/blah.dat >/dev/null 2>&1
echo "This script will query the database for a range of projects and return the projects units that are marked as a A or I and the address of the unit."
echo "Please enter the first project, NOTE if you only wish for one project to be displayed enter the same project number at both prompts."
echo "Enter the other project number."
if test -s /tmp/blah.dat
echo "File write successful!"
sed '$filename test' ./good.txt | mail -t email@example.com
echo "File write Failure..zero length file or no data to write"
now the good.txt file is
the following program has ran: "this is where the name of the script is going to be"
bobnoff what is the $a in your statement I assume it the scripts name? when I run I get and error on the sed statement.