title: split record based on position in unix and compare the string with next record and copy
body: <p>My input file is as below:</p>
  
  <pre><code>B0000001201012345519680415EN
  B0000001201052323219921114
  B0000001701233333319510802LN
  B0000001701238999919460920
  B0000000247974444419611219TN
  B0000000246666666619910804
  B0000000247777777719940329
  </code></pre>
  
  <p>I want to copy first record 'EN' to second record based on starting 9 bytes (<code>B00000012</code>).
  The expected output is:</p>
  
  <pre><code>B0000001201012345519680415EN
  B0000001201052323219921114EN
  B0000001701233333319510802LN
  B0000001701238999919460920LN
  B0000000247974444419611219TN
  B0000000246666666619910804TN
  B0000000247777777719940329TN
  </code></pre>
  
  <p>I need to write this in unix shell scripting</p>