A script that read specific fileds from the 7th line in a file

Dear All,

I need a unix script that will read the 7th line and especially these fileds from a file Mo speed 16, Mt speed 15 every 15 minutes starting from 00:00 to 23:45 on daily basis and put the result in a txt file and name it MT_MO_20090225.txt, please also note that the system date format is Thu Feb 26 17:16:28 GMT-1 2009.

Please find attached SAMPLE of the file.

Waiting for your positive response.

Rgrds,

Ali

To read the 7th line from a file:

{ read; read; read; read; read; read; read line7; } < FILENAME

Or:

line7=$( sed -n '7{p
q
}' FILENAME  )

Please note i have prepared the below script.

#!/bin/ksh
# A shell script to print the MO and MT license OF SMSC
# Written by Tom - Feb/27/2009
# --------------------------------
telnet 10.35.90.100
Username= user
Password=user
cd /home/smc/log/smcapp
cat smcapp.run.0 | awk -F, '{print $7 "," $8,"$9,"$10,"$11,"$12,"$13 }' >> SMSC_License_20090227.txt

Please note that i need to run this script from a different server and put the SMSC_License_20090227.txt in that server and needs to make theis script read from the file every second although the data generated in the file is every one minute.

Please check the above script and correct if there is any eeror.