title: Regex to club consecutive lines?
body: <p>I have text file like  this</p>
  
  <pre><code>name1
  age1
  name2
  age2
  name3
  age3
  name4
  age4
  </code></pre>
  
  <p>I want the data in this format</p>
  
  <pre><code>name1:age1
  name2:age2
  name3:age3
  name4:age4
  </code></pre>
  
  <p>Can anyone suggest me any regular expression to achieve such results? I am using eclipse regular expression which works the same way as notepad++ or edit+ regular expression. Also can it be done through sed in bash in linux?</p>