Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

shell script

Status
Not open for further replies.

sandeepmur

Programmer
Dec 14, 2003
295
PT
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,
 
netstat | awk -f awkscript.awk >> abc.xls

vlad
+----------------------------+
| #include<disclaimer.h> |
+----------------------------+
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top