Get Help With Your Essay
"Place your order now for a similar assignment and have exceptional work written by our team of experts, guaranteeing you A results."
Lesson 24 participation Unix
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. Copy and paste script into a document or upload with pscp in to canvas. Output from program appears as: [[email protected] ~]$ sh ./pingStackOverflow.sh icmp_seq=1 time=13.1 icmp_seq=4 time=13.1 icmp_seq=6 time=12.9 icmp_seq=8 time=13.1 icmp_seq=10 time=13.0