title: Linux - Get Substring from 1st occurence of character
body: <p><strong>FILE1.TXT</strong></p>
  <p>0020220101</p>
  <p>or</p>
  <p>01 20220101</p>
  <p>Need to extra date part from file where text starts from 2</p>
  <p>Options tried:</p>
  <pre><code>t_FILE_DT1='awk -F&quot;2&quot; '{PRINT $NF}' FILE1.TXT'
  t_FILE_DT2='cut -d'2' -f2- FILE1.TXT'
  
  echo &quot;$t_FILE_DT1&quot;
  echo &quot;$t_FILE_DT2&quot;
  </code></pre>
  <p>1st output : 0101</p>
  <p>2nd output : 0220101</p>
  <p>Expected Output: <strong>20220101</strong></p>
  <p>Im new to linux scripting. Could some one help guide where Im going wrong?</p>