Last Updated: February 25, 2016
·
707
· swlkr

Batch Rename Files In Bash

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