title: Is there a way to avoid "newline in string" errors in awk?
body: <p>How are cmdline args containing newline chars passed to <code>awk</code>? See two examples below:</p>
  
  <pre><code>awk -v s='text' 'BEGIN { print(s) }'
  
  text
  
  awk -v s=$'\n''text' 'BEGIN { print(s) }'
  
  awk: newline in string 
  text... at source line 1
  </code></pre>