title: How can I make multiple lines into one line using bash?
body: <p>So I have code that looks like this:</p>
  
  <pre><code>else if(between(pay,1260,1280))
  {
      return 159;
  }
  else if(between(pay,1280,1300))
  {
      return 162;
  }
  else if(between(pay,1300,1320))
  {
      return 165;
  }
  </code></pre>
  
  <p>But I want it to look like this:</p>
  
  <pre><code>else if(between(pay,1260,1280)){return 159;}
  else if(between(pay,1280,1300)){return 162;}
  else if(between(pay,1300,1320)){return 165;}
  </code></pre>
  
  <p>Can I do this in bash? If not, which language can I use?</p>
  
  <p>The full code is over 30,000 lines and I could manually do it, but I know there's a better way. I want to say the 'sed' command can help me with a mixture of regex, but that's as far as my knowledge can take me. </p>
  
  <p>P.S Please overlook how un-optimized it is just this once.</p>