title: A possible loop to rename files in order from a directory?
body: <p>I have a 100 .fits files in a directory with long names (ex. spec-0355-51788-0484.fits       spec-0493-51957-0157.fits, spec-0367-51997-0430.fits, spec-0771-52370-0017.fits etc...)</p>
  
  <p>I am wondering if there is a loop to rename them all in a sequence of integers so that it looks like 1.fits, 2.fits, 3.fits, 4.fits, .... 100.fits</p>