Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Data Science Project Ideas In Health Care Volume 1

Authors: Zemelak Goraga

1st Edition

B0CPX2RWPF, 979-8223791072

More Books

Students also viewed these Databases questions

Question

What mental processes allow you to perceive a lemon as yellow?

Answered: 1 week ago