title: Why is my csh script not working with special characters?
body: <pre><code>#!/bin/csh -f
  
  foreach line ("`cat test`")
      set x=`echo "$line" | awk '{split($0, b, " "); print b[1]}'`
      echo "$x"
  end
  </code></pre>
  
  <p>test file contains following contents:</p>
  
  <pre>
  How to Format
  Stack[7] Overflow
  Put returns between paragraphs
  </pre>
  
  <p>On executing the script I am getting following error:</p>
  
  <pre>
  set: No match.
  </pre>
  
  <p>How to store the string which contains special character like square brackets <code>[]</code> in a variable and then use them in code?</p>