title: Linux shell (sh) CLI test if ping successful
body: <p>How to wire linux shell (sh) script to test with <code>ping</code> if host is reachable?
  I guess there could be solution that uses grep but maybe <code>ping</code> provides that option by itself?</p>
  
  <p>I am more into getting a whitelisting a successful ping operation that reached the host then checking if there was any error. I don't care about the reason of <code>ping</code> not succeeding in reaching a host.</p>
  
  <p>I would like to limit ping attempts count and maximum amount of time to reach the host so the script does not waits too long for ping trying to reach a host.</p>