title: writing a basic script that pings the current network
body: <p>I'm having trouble writing a simple script that pings its current network. 
  I want the output to look the same as a normal ping but I'm having trouble getting to that point</p>
  
  <p>here's the original question from the assignment </p>
  
  <p>-write a short script(using the ping command)to do a "ping" scan of your current network. </p>
  
  <p>any help you can give is much appreciated </p>
  
  <p>I originally tried <code>printf</code> but I wasn't able to even get a decent output so I gave up and started using echo </p>
  
  <p>This is what I have right now</p>
  
  <pre><code>#!/bin/bash
  
  for ping in $(ping -c 4 -v 192.168.1.10)
    do echo $ping
  done
  </code></pre>
  
  <p>my teacher said that I would run into two problems with the simple ping script and that I could find the answer in the ping man pages. however I can't seem to find anything to help. </p>
  
  <p>I basically want the script to run as if I just ran a normal ping command and have it display output in the same way.</p>