title: ping script and log output and cut with grep
body: <p>I want to ping a bunch of locations but not at the same time, in order so they don't timeout. </p>
  
  <p>The input is for example: <code>ping google.com -n 10 | grep Minimum &gt;&gt; output.txt</code></p>
  
  <p>This will make the output of: <code>Minimum = 29ms, Maximum = 46ms, Average = 33ms</code></p>
  
  <p>But there are extra spaces in front of it which I don't know how to cut off, and when it outputs to the txt file it doesn't go to a new line. What I am trying to do is make it so I can copy and paste the input and ping a bunch of places once the previous finishes and log it in a .txt file and number them so it would look like:</p>
  
  <pre><code>Server 1: Minimum = 29ms, Maximum = 46ms, Average = 33ms
  Server 2: Minimum = 29ms, Maximum = 46ms, Average = 33ms
  Server 3: Minimum = 29ms, Maximum = 46ms, Average = 33ms
  Server 4: Minimum = 29ms, Maximum = 46ms, Average = 33ms
  </code></pre>