Question: Write a script (pingStackoverflow.sh) that performs a: ping to stackoverflow.com with a count of 10, greps for icmp in the output, and then redirects the

Write a script (pingStackoverflow.sh) that performs a:

ping to stackoverflow.com with a count of 10,

greps for icmp in the output,

and then redirects the output to results.txt

Next use a gawk with the random function and a multiplier of < 0.25 so that only random lines are returned from results.txt.

Use gawk to only display fields with seq and time from the data contained in results.txt.

Bash script should only be two lines in addition to the #!/bin/bash line.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!