title: Replace "\n" with newline in awk
body: <p>I'm tailing logs and they output <code>\n</code> instead of newlines.</p>
  <p>I thought I'd pipe the <code>tail</code> to <code>awk</code> and do a simple replace, however I cannot seem to escape the newline in the regex. Here I'm demonstrating my problem with <code>cat</code> instead of <code>tail</code>:</p>
  <p><code>test.txt</code>:</p>
  <pre><code>John\nDoe
  Sara\nConnor
  </code></pre>
  
  <pre><code>cat test.txt | awk -F'\\n' '{ print $1 &quot;\n&quot; $2 }'
  </code></pre>
  <p>Desired output:</p>
  <pre><code>John
  Doe
  Sara
  Connor
  </code></pre>
  <p>Actual output:</p>
  <pre><code>John\nDoe
  
  Sara\nConnor
  
  </code></pre>
  <p>So it looks like <code>\\n</code> does not match the <code>\n</code> between the first and last names in test.txt but instead the newline at the end of each line.</p>
  <p>It looks like <code>\\n</code> is not the right way of escaping in the terminal right? This way of escaping works fine in e.g. Sublime Text:</p>
  <p><img src="https://i.stack.imgur.com/J21Um.png" alt="regex working in ST3" /></p>