title: Batch file to save output between brackets to a new txt file
body: <p>I am running the following batch script to reverse lookup domain names form IPs</p>
  
  <blockquote>
    <p>For /f %%i in (c:\ip.txt) do (Ping -a %%i -n 1 >>output.txt )</p>
  </blockquote>
  
  <p>The file ip.txt has a list of IPs in it.</p>
  
  <p>The output file has an output like this which is expected</p>
  
  <pre><code>Pinging UKSEVRERNAME.com [10.87.130.200] with 32 bytes of data:
  Reply from 10.87.130.200: bytes=32 time=16ms TTL=53
  
  Ping statistics for 10.87.130.200:
      Packets: Sent = 1, Received = 1, Lost = 0 (0% loss),
  Approximate round trip times in milli-seconds:
      Minimum = 16ms, Maximum = 16ms, Average = 16ms
  </code></pre>
  
  <p>What I want is to only keep the the server name and IP and disregard the rest...  </p>
  
  <p>Any suggestions?</p>