Änderungen

Zur Navigation springen Zur Suche springen
19 Bytes hinzugefügt ,  21:02, 29. Sep. 2006
Zeile 97: Zeile 97:  
<pre>
 
<pre>
 
awk '{if($2=="localhost")s=1;z++;if(z>5){if($0=="")exit;print $1,substr($2,1,length($2)-5)}}END{print "---"}' /etc/hosts >/tmp/dat
 
awk '{if($2=="localhost")s=1;z++;if(z>5){if($0=="")exit;print $1,substr($2,1,length($2)-5)}}END{print "---"}' /etc/hosts >/tmp/dat
wget -O - http://127.0.0.1:2006|awk '{if(s==1){if($0=="")exit;if($5<10)print $1,$2,$5};if($2=="Topology")s=1}' >>/tmp/dat
+
wget -O - http://127.0.0.1:2006|awk '{if(s==1){if($0=="")exit;if($5<10&&$5!="0.00"&&$5<11)print $1,$2,$5};if($2=="Topology")s=1}' >>/tmp/dat
 
</pre>
 
</pre>
  

Navigationsmenü