title: Read input twice on the same line (without line break) using Bash Script
body: <p>I was trying to read user input twice on the same line from a bash script. It's not very useful at all, but it's pretty and I'm trying to achieve this.</p>
  <p><strong>The relevant part of my code looks like that:</strong></p>
  <pre><code>#!/usr/bin/env bash
  
  FROM_YEAR=2015
  TO_YEAR=2017
  read -e -p &quot;Backup from &quot; -i &quot;${FROM_YEAR}&quot; FROM_YEAR
  read -e -p &quot; to &quot;         -i &quot;${TO_YEAR}&quot;   TO_YEAR
  </code></pre>
  <p><strong>With this code I get the following:</strong></p>
  <pre><code>Backup from 2015 *press enter*
   to 2017
  </code></pre>
  <p><strong>But I would like output like this:</strong></p>
  <pre><code>Backup from 2015 *press enter* to 2017
  </code></pre>
  <p>Of course, I want an output without the marking (<code>*press enter*</code> ).</p>
  <hr>
  <h3>How can I achieve that with bash script?</h3>
  <p>Thank you :)</p>