Auto is a freely provided utility from Hammer Visual Engineering for building batch commands on numbered files. Let's say you have 312 rendered image files that are numbered as follows:image1.rgb image2.rgb image3.rgb ... image312.rgb
and you need to have them renamed "scene", numbered to three places with leading zeros starting with 0 instead of 1, and converted to .jpgs using a converter called rgb2jpg, is in:scene000.jpg scene001.jpg scene003.jpg ... scene312.jpg
The following Auto command will create a batch file to do the whole set:auto rgb2jpg 312 image%d.rgb 1 1 scene%03d 0 1 > batch_it.sh
Unlike many such utilities, Auto does not actually perform the command. Instead, it sends its output (the shell script to perform the commands) to the standard output where it can be redirected to a file for later execution, or piped to sh (ksh, csh, tcsh, zsh, whatever...) for immediate execution.
The syntax for Auto is:
auto command iterations [argument start increment] [argument start increment] [...]
Auto is provided free of charge and may be distributed as-is. Hammer Visual Systems and Mark Lasersohn are not responsible for anything you may do with it.
Download auto - an executable built on Irix 6.2 for SGI.
rename 30 files and number them in increments of 10:
remove leading zeros from a filename, copying the file:auto cp filename%03d.txt 0 30 new_filename%d 0 30
get the idea....?