Answered step by step
Verified Expert Solution
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
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started