[dot] PATH
A blog dedicated to my Linux experience and other great tools.
Monday, June 18, 2012
A one liner to rename files sequentially
This one line script will rename image files into nice sequential files such as
IMG_000.JPG
IMG_001.JPG
etc.
EII=0; for each in `ls -rt`; do mv $each IMG.`printf "%03d" $EII`.JPG; EII=`expr $EII + 1`; done;
Newer Posts
Older Posts
Home
Subscribe to:
Posts (Atom)