I want to write a vbscript or batch file to run over almost a hundred files (in the same directory) and do the following:
For each line that starts with the string "component " (there is a space after component)
I want to add at the end of that line a space. Other lines won’t be affected.
For example:
this is line one
component this is line two
this is line three
will change to:
this is line one
component this is line two (<=space)
this is line three
(There is only one space after the word “two”.)
1 Answer