title: Parsing pipe delimited input in awk
body: <p>Have seen many posts asking similar question.  Can't get it working.</p>
  
  <p>Input looks like:</p>
  
  <pre><code>&lt;field one with spaces&gt;|&lt;field two with spaces&gt;
  </code></pre>
  
  <p>Trying to parse with awk.</p>
  
  <p>Have tried many variants from excellent posts:</p>
  
  <pre><code>FS = "^[\x00- ]*|[\x00- ]*[|][\x00- ]*|[\x00- ]*$";
  FS = "^[\x00- ]*|[\x00- ]*\|[\x00- ]*|[\x00- ]*$";
  FS = "^[\x00- ]*|[\x00- ]*\\|[\x00- ]*|[\x00- ]*$";
  </code></pre>
  
  <p>Still can't get the pipe delimiter to work.</p>
  
  <p>Using CentOS.</p>
  
  <p>Any help?</p>