title: File parsing with shell script
body: <pre><code>[root@localhost sql]# cat a.sql 
  use Test1;
  aaaa
  bbb
  ccc
  use Test2;
  zzzz
  dddd
  use Test3;
  jjj
  use Test1;
  kkk
  lll
  </code></pre>
  
  <p>hi all i want to parse the about file into below way , i need to use shell script and can any one help me with script please. 
  From the file it has to create a separate file based on ^use  and keep appending the next lines till one more use comes so the final output i need is </p>
  
  <p>1 ) Three files need to be created</p>
  
  <blockquote>
    <p>Test1  Test2 Test3</p>
  </blockquote>
  
  <p>2) if i cat the Test1 , Test2 and Test3</p>
  
  <pre><code>$ cat Test1
  aaaa
  bbb
  ccc
  kkk
  lll
  
  
  $ cat Test2
  zzzz
  dddd
  
  
  $ cat Test3
  jjj
  </code></pre>
  
  <p>please help me :-( </p>