Page 1 of 1
batchfile change line
Posted: 20 Mar 2010 13:59
by dani8190
how to make a batchfile change a single line in any place in a textfile?
Re: batchfile change line
Posted: 20 Mar 2010 15:06
by aGerman
This is not possible. You could read the file line by line, change what you want, write it to a new file and finally replace the old file.
Explain what you wanna do.
Re: batchfile change line
Posted: 21 Mar 2010 04:05
by !k
dani8190
You can use an external utility sed (GNU and super-sed versions is guaranteed) with a key --in-place