I have a set of text files that have the content somewhat similar to the following :
Now, lets say I have a few hundred lines going and I have to add one line. Then, I'll have to waste more renumbering everything.
The reason why? Its part of a javascript file for a header of a website. I only edit the html and know nothing about javascript.
I was thinking of going for something that replaces a certain character into an increasing number set. For example :
I would need a solution that replaces the xx's with increasing numbers (1,2,3,4,5). I've looked up Bat scripting but have no luck. Can someone point me in the right direction?
Code:
header[00]
header[01]
header[02]
header[03]
header[04]
Now, lets say I have a few hundred lines going and I have to add one line. Then, I'll have to waste more renumbering everything.
The reason why? Its part of a javascript file for a header of a website. I only edit the html and know nothing about javascript.
I was thinking of going for something that replaces a certain character into an increasing number set. For example :
Code:
header[xx]<html>
header[xx]<head>
header[xx]<title>sfsjkfs</title>
header[xx]</head>
header[xx]<body>
I would need a solution that replaces the xx's with increasing numbers (1,2,3,4,5). I've looked up Bat scripting but have no luck. Can someone point me in the right direction?