I have a speck file (can be editted like a txt) of the format
datavar 0 pictype datavar 1 absmag texturevar pictype #The texture filename to associate with txnum 1 texture -a 24 24_rot_0001.sgi #x y z no. lum 100.0 100.0 100.0 24 10.0
What I need to do is to create "n" number of files, each named rot_"n".speck with the the only change within the file being the rot_0001.sgi being changed to rot_00"n".sgi. I am aware that probably quite a simple python loop can perform this. But I do not know the form it would take. Can you help?