title: awk to process multiple sorting at one go
body: <p>I'm just trying to remove <code>"[]"</code> , <code>"out:"</code> &amp; <code>nameserver</code> from the output, as i'm First getting the lines which are haing <code>nameserver</code> in the file.</p>
  
  <p>Then again i'm using awk again to process and remove the mentioned  values, i'm sure there will be smart way to do that without calling awk twice.</p>
  
  <pre><code>$ awk '/nameserver/'  dns_file
  [keanx61.ddl.COM]            out:  nameserver  192.22.48.33
  [keanx61.ddl.COM]            out:  nameserver  192.22.48.23
  [keanx61.ddl.COM]            out:  nameserver  172.144.71.11
  
  $ awk '!/^$/ { gsub( /[][]|out:|nameserver/ , "" ); print $0 }' dns_file
  keanx61.ddl.COM  192.22.48.33
  keanx61.ddl.COM  192.22.48.23
  keanx61.ddl.COM  172.144.71.11
  </code></pre>