title: Using gawk to prepend the system hostname (without newline) to a string
body: <p>I'm trying to use gawk to prepend the system hostname to a string. I'm away I can do something like this:</p>
  
  <pre><code>interesting_command.sh|gawk 'print system("hostname") "\t" $0'
  </code></pre>
  
  <p>But that ends up printing:</p>
  
  <pre><code>hostname.example.com
      Line 1 text
  hostname.example.com
      Line 2 text
  </code></pre>
  
  <p>etc.</p>
  
  <p>Ideally, I'm looking for the output of <code>hostname</code> but with any newlines or whitespace 
  characters stripped.</p>
  
  <p>How can I do this?</p>