title: Ubuntu - Sequential file naming with User input
body: <p>I am trying to create a custom command for renaming image sequences.</p>
  
  <p>I am studying Visual Effects and sometimes have to rename files sequentially.</p>
  
  <p>I want to navigate to the directory where the images are saved, call the command, receive a prompt to enter a prefix for the file name (EG. {PREFIX}_%04d.png), and execute the command after entering said prefix. </p>
  
  <p>Now I know from another post that I can rename files sequentially via:</p>
  
  <pre><code>for i in *.jpg; do
      p=$(printf "USERINPUTHERE_%04d.jpg" ${n})
      mv ${i} ${p}
      let n=n+1
  done
  </code></pre>
  
  <p>But I am not sure how or if it’s possible to have the command request input before fully executing.</p>