title: script to manipulate the dhcp/conf
body: <p>i want to write a script to manipulate the dhcp.conf file. which in the sense, it has to read the file and it should ping all the lease IP and should give another text file, in which it should give the list of IPs, which devices are now existing.</p>
  
  <p>EDIT: thanks for your swift reply. dhcpd.conf file is like this</p>
  
  <pre><code>lease 172.31.0.10 {
    some text
    some text1
  }
  
  lease 172.31.0.12 {
    some text
    some text1
  }
  
  lease 172.31.0.100 {
    some text
    some text1
  }
  </code></pre>
  
  <p>so first i need to extract the ip address first and one by one we have to ping</p>