title: Can I use sed to rename files with a "running count"?
body: <p>I have a directory full of pictures. Lets say </p>
  
  <pre><code>/usr/pics/foo 
  /usr/pics/duckface.jpg 
  usr/pics/bar.bmp 
  ...
  </code></pre>
  
  <p>I'd like to go through and rename them to </p>
  
  <pre><code>/usr/pics/pic1 
  /usr/pics/pic2 
  /usr/pics/pic3 
  ...
  </code></pre>
  
  <p>Doesn't have to be <code>sed</code> anything I can run from a <code>bash</code> script will be fine. I think I can handle the regex I just don't know what to replace with. </p>