Print specific line with awk


print first line with awk
ping -c 1 8.8.8.8 | awk 'NR==1'

print last line with awk
ping -c 1 8.8.8.8 | awk 'END { print }'

SNMP Oracle Linux

  sudo yum install net-snmp net-snmp-utils -y    nano /etc/snmp/snmpd.conf  agentAddress  udp:10.20.1.2:161 rocommunity public systemctl res...

Mais vistos