Reputation: 9
I am looking for a command for Linux terminal in order to ping an internal server.
Upvotes: 0
Views: 261
Reputation: 88979
With GNU awk:
ping soren | awk '/ from /{if(c==5){exit}; c++} {print}'
This will output all rows until five times from
is found.
Upvotes: 1