title: Assign the output of awk to a specific column in a file
body: <p>I have the following example output from a log file where im trying to get the reverse pointer records for the IP Addresses in column 7 below</p>
  
  <pre><code>2017-01-09 11:25:22.421     0.306 TCP    192.168.1.2:50599 -&gt;    192.0.2.25:443        500    20000     1
  2017-01-09 11:30:11.210     0.000 TCP    192.168.1.2:50503 -&gt;    192.0.2.25:443        100     4000     1
  2017-01-09 09:01:22.546     0.000 TCP    192.169.1.2:50307 -&gt;    192.0.2.25:443        100     4000     1
  </code></pre>
  
  <p>If I run this awk command I can extract the reverse records for column 7:</p>
  
  <pre><code>cat test.txt | awk '{print $7}'| grep -oE '[0-9]+\.[0-9]+\.[0-9]+\.[0-9]+'| xargs -I % bash -c 'echo "$(dig -x % +short)"'
  </code></pre>
  
  <p>How do I get the output from the above command to replace whats in column 7 to update it so it will read for example:</p>
  
  <pre><code>2017-01-09 11:25:22.421     0.306 TCP    google.com -&gt;    192.0.2.25:443        500    20000     1
  2017-01-09 11:30:11.210     0.000 TCP    -&gt;    192.0.2.25:443        100     4000     1
  2017-01-09 09:01:22.546     0.000 TCP    yahoo.com -&gt;    192.0.2.25:443        100     4000     1
  </code></pre>