title: Replacing two strings using awk
body: <p>I want to replace <code>@@</code> with <code>^</code> and <code>¤¤</code> with a newline in a file. To do this I wrote the code below, but it feels like there is a more elegant solution then calling gawk twice. Can anyone tell me if there is one?</p>
  
  <pre><code>cat test.txt | gawk '{ gsub("@@", "^"); print }' | gawk '{ gsub("¤¤", "\r\n"); print }'
  </code></pre>