Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!


Click here to return to the 'Batch rename image files sequentially via perl script' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
Batch rename image files sequentially via perl script
Authored by: mkomitee on Aug 29, '07 08:43:21AM
if yer going to use perl, use perl. if you're going to use shell, use shell :)
i=0; for x in *.jpg; do mv $x $i.jpg; i=$(($i+1)); done


[ Reply to This | # ]
Batch rename image files sequentially via perl script
Authored by: itistoday on Sep 02, '07 09:24:02AM

This is definitely the way to do it. Notice how simple and clean it is, and you don't need to run it through no stinkin' perl interpreter.



[ Reply to This | # ]