Write a Linux bash shell script that should take an IP address as an argument from the command line and

Write a Linux bash shell script that should take an IP address as an argument from the command line and ping to that address. The script should output the result of the ping as either reachable or unreachable depending on the result of the ping. Two example outputs of the script may look like as below. Take the screen shot of the script itself and the outputs of the running script for 8.8.8.8 and 23.23.23.21 to submit.
————1——
$ ./yourname_script.sh 8.8.8.8
The IP address 8.8.8.8 is reachable
—————2————-
$ ./yourname_script.sh 23.23.23.21
The IP address 23.23.23.21 is not reachable

Share This Post

Email
WhatsApp
Facebook
Twitter
LinkedIn
Pinterest
Reddit

Order a Similar Paper and get 15% Discount on your First Order

Related Questions