saturnianalien |
01-29-2013 04:57 AM |
Batch rename html files line by line from text file
Say I have a bunch of html files that are named sequentially as well as a separate text file containing a bunch of strings separated by new lines. The number of lines in the text file match up exactly with the number of files. How would I batch rename all those html files according to each line? That is, 000.html would be 1stline.html and 001 would 2ndline.html etc (1stline and 2ndline actually being whatever is on those lines in the text file).
|