Question: In linux, Write a script that reads a file containing multiple IP addresses. The script should then perform a ping test on them one at
In linux, Write a script that reads a file containing multiple IP addresses. The script should then perform a ping test on them one at a time with ping -c 1 [IP address], letting the user know if the ping succeeded based on the commands exit code (you may need to research what exit codes are). Be sure your script validates each IP address before pinging it, skipping over invalid ones (hint: consider using the ipcalc command for this).
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
