title: How to pass variable within printf
body: <p>I am trying to echo a variable within a printf. I first prompt the user for input using the command below</p>
  
  <pre><code>printf 'Specify lrus [default 128]:         ' ;read -r lrus
  </code></pre>
  
  <p>Next it prompts the user again to see if he wants the input used from the previous question:</p>
  
  <pre><code>printf 'Are you sure you want $lrus lrus:       ' ;read -r ans
  </code></pre>
  
  <p>For example the output will look like the below:</p>
  
  <pre><code>Specify lrus [default 128]:     60
  Are you sure you want 60 lrus:  yes
  </code></pre>
  
  <p>The above output is what I am trying to achieve allowing to pass the previous input variable to the next question using printf.</p>