title: UNIX script to parse Zone file (is this the best code?)
body: <p>FOund the following on: <a href="http://mike.murraynet.net/2009/08/23/parsing-the-verisign-zone-file-with-os-x/" rel="nofollow noreferrer">http://mike.murraynet.net/2009/08/23/parsing-the-verisign-zone-file-with-os-x/</a></p>
  
  <p>Can unix-masters have a look at it and see if its the best possible way to gather the unique domainsnames in a zone file?</p>
  
  <p>For .NET domains:
  grep “^[a-zA-Z0-9-]+ NS .<em>” net.zone|sed “s/NS .</em>//”|uniq >> netdomains.txt</p>
  
  <p>For .COM domains:
  grep “^[a-zA-Z0-9-]+ NS .<em>” com.zone|sed “s/NS .</em>//”|uniq >> comdomains.txt</p>
  
  <p>For .EDU domains:
  grep “^[a-zA-Z0-9-]+ NS .<em>” edu.zone|sed “s/NS .</em>//”|uniq >> edudomains.txt</p>