help with counter
BC at energy.com
Mon Jan 6 21:20:41 CET 2003
I must have been looking at this problem for to long, but I need some
help because I am stuck.
I have a series of files on disk file.01.txt, file.02.txt ...
what I am trying to do is rename all the files a new name but also not
renaming a few files but maintaining the number sequence
#sample command line
pyrename.py file.01.txt file.400.txt 3 newfile.01.txt
script name / filename of first file / last filename / drop every 3rd
file / new filename and start number
file.10.txt ... newfile.08.txt...
the filename changes the amount changes and the file to be dropped
For some reason I can't put my head around this problem. Any help
would be appreciated.
More information about the Python-list