title: Shell Scipt sub string
body: <p>Please help me to get script for below case.</p>
  
  <p>I Have my content of file like below,</p>
  
  <p><strong>AllIdPropert.txt (ID|PropertyBit|)</strong></p>
  
  <pre><code>1|0000000000000000000000000|
  2|0000100000000000000000000|
  3|0000100000000000000000000|
  4|0000100000000000000000000|
  5|0000000000000000000000000| 
  6|0000000000000000000000000|
  </code></pre>
  
  <p>I need to extract all the Id's into different file where PropertyBit[5] == 1(Where 5th bit is 1) in the format as below.</p>
  
  <p>5bitenable.txt</p>
  
  <pre><code>2|
  3| 
  4|
  </code></pre>
  
  <p>`</p>