title: Escaping an exclamation mark in a ssh remote call to awk?
body: <p>I have this line:</p>
  
  <pre><code>ssh server1 "df -h | sed 's/%/ /g' | awk '{ if (\$5 &gt; 90 &amp;&amp; !/^[a-zA-Z]/) { var1=1 }} END { if (var1 == 1) { print 1 } else { print 0 }}'"
  </code></pre>
  
  <p>However, this produces the following error:</p>
  
  <pre><code>bash: !/^[a-zA-Z]/: event not found
  </code></pre>
  
  <p>Not quite sure how I should escape the exclamation mark. Any ideas?</p>
  
  <p>Regards,</p>
  
  <p>David</p>