sandeepmur
Programmer
Hi,
I have a shell script as follows:
#echo "Getting Netstat data into abc.xls"
cd /home/etbc01/NETSTAT
netstat | awk -f awkscript.awk > abc.xls
The above script runs via a scheduler every 60 mins. What happens is that this file is always overwritten. What can I do in the script so that the File gets appended instead of being overwritten ?
Also, I need to delete a line and insert another line into the file ?
Thnx,
I have a shell script as follows:
#echo "Getting Netstat data into abc.xls"
cd /home/etbc01/NETSTAT
netstat | awk -f awkscript.awk > abc.xls
The above script runs via a scheduler every 60 mins. What happens is that this file is always overwritten. What can I do in the script so that the File gets appended instead of being overwritten ?
Also, I need to delete a line and insert another line into the file ?
Thnx,