title: Using a multi-character field separator in awk on Solaris
body: <p>I wish to use a string (BIRCH) as a field delimiter in <code>awk</code> to print second field. I am trying the following command:</p>
  
  <pre><code>cat tmp.log|awk -FBirch '{ print $2}'
  </code></pre>
  
  <p>Below output is getting printed:</p>
  
  <blockquote>
    <p>irch2014/06/23,04:36:45,3,1401503,xml-harlan,P12345-1,temp,0a653356353635635,temp,L,Success</p>
  </blockquote>
  
  <p>Desired output:</p>
  
  <blockquote>
    <p>2014/06/23,04:36:45,3,1401503,xml-harlan,P12345-1,temp,0a653356353635635,temp,L,Success</p>
  </blockquote>
  
  <p>Contents of <strong>tmp.log</strong> file.</p>
  
  <pre><code>-bash-3.2# cat tmp.log  
  Dec 05 13:49:23 [x.x.x.x.180.100] business-log-dev/int [TEST][0x80000001][business-log][info] mpgw(Test): trans(8497187)[request][10.x.x.x]:
  Birch2014/06/23,04:36:45,3,1401503,xml-harlan,P12345-1,temp,0a653356353635635,temp,L,Success
  </code></pre>
  
  <p>Am I doing something wrong?</p>
  
  <ul>
  <li>OS: Solaris10  </li>
  <li>Shell: Bash</li>
  </ul>
  
  <p>Tried below command suggested in one of the ansers below. I am getting the desired output, but with an extra empty line at the top. How can this be eliminated from the output?</p>
  
  <p><code>-bash-3.2# /usr/xpg4/bin/awk -FBirch '{print $2}' tmp.log</code></p>
  
  <p><code>
   2014/06/23,04:36:45,3,1401503,xml-harlan,P12345-1,temp,0a653356353635635,temp,L,Success</code></p>