title: Shell IP ping script with result save
body: <p>I need to write a Shell script that takes in parameters a range of IP addresses, ping them and then saves the ping result in log file that show whether each IP ping result.</p>
  
  <p>The script should be called like this :</p>
  
  <pre><code>#script IP1 IP2 IP3 ... IPn
  </code></pre>
  
  <p>The result in the log file should look something like this :</p>
  
  <pre><code>254.222.222.222 : ECHEC
  158.100.100.100 : SUCCESS
  140.140.140.140 : SUCCESS
  ....
  </code></pre>