[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;
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment