I have javascript file named w1.js, in the code there is a
var IDInput = '1'; .
I would like to generate few hundred .js files, changing only that value and save them as separate file.
Like:
w2.js file with var IDInput = '2';
w3.js file with var IDInput = '3'...so on.
Using the software fileboss I'm able to generate duplicates of the same .js file as I wanted, w1.js,w2.js,w3.js..but changing the code "var IDInput = 'x';" in them manually using notepad++ is a lot, the number in the name of the file and the value of the variable needs to match.
Please note "var IDInput = '1';" is on line 10 in my code, so replacing the line could be an option using a tool or I can set it as a unique string (many other variables are in the code that need to remain intact).
Any ideas?