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 SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

need to redirect traceroute output 1

Status
Not open for further replies.

cp2000

Technical User
Dec 31, 2002
81
0
0
US
I am trying to write a script to monitor transit time between two systems. "Traceroute" seems to be the most effective to do this. However, I need to supress the first line. My output is like this:
# traceroute -i hme0 -q4 server2.domain.com | gawk -F" " '{print $4,$5,$6,$7,$8}'
traceroute to server2.domain.com (555.555.555.555), 30 hops max, 40 byte packets
0.325 ms 0.183 ms 0.240

How can I supress the first line of output???
 
[tt]# traceroute -i hme0 -q4 server2.domain.com | gawk -F" " 'NR > 1 {print $4,$5,$6,$7,$8}'[/TT]

Would only display output of the number of records (NR) is greater than 1.


Annihilannic.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top