Formatting Sar Output script

Hi,

We have 2 scripts below for reporting sar output which are pretty same.
In first script i want to add to the program whatever is given in the comments.
In second script I want to use while true to run this program every hour and everything that is in comment.

Finally I want to club both script and make it one single sar script.

Please can anyone help and write a program asap.

filesar='path/sarfile'
while true
do
if [-s $filesar]
then

# Loops endlessly
# an exit can be placed to conditionally exit if file not found . 
# Check that file is recently updated ( 1 or 2 days old)
 

sar -f /path/sarfile| head -6 > file.$$
sar -f /path/sarfile|grep -vi restart |tail -50 >> file.$$
mailx -s "Last 48 hours sar data at `date`" abc@c.com < file.$$
sleep 3600
sar -f /home01/ml30464/sa21 | head -6 > file.$$
sar -f /home01/ml30464/sa21 |grep -vi restart |tail -50 >> file.$$
mailx -s "Last 48 hours sar data at `date`" abc@c.com < file.$$
rm sa21.$$
else
echo ' file not exist'
fi
done
exit

#need to add and display if file is 2 days old