Batch Rename Files In Bash

Posted on

Here’s how to rename a bunch of files in bash:

j=0; for i in *.jpg; do mv $i ${j}.jpg; j=`expr $j + 1` done

Leave a Reply

Your email address will not be published.