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 }'

Monitoring response time with curl

   curl -s -o /dev/null -w "Conecction: %{time_connect}s | Start transfer: %{time_starttransfer}s | Total time: %{time_total}s\n" ...

Mais vistos