Editing Noteapd through Batch file
hi
I have Notepad fle(say test1.txt), having data like below
==========================================
CENTRAL
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
220
---------- G:\PAGING\COUNTTEMP.TXT: 30
287
---------- G:\PAGING\COUNTTEMP.TXT: 53
718
---------- G:\PAGING\COUNTTEMP.TXT: 0
CITY
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
212
---------- G:\PAGING\COUNTTEMP.TXT: 47
221
---------- G:\PAGING\COUNTTEMP.TXT: 43
222
---------- G:\PAGING\COUNTTEMP.TXT: 65
===============================================
actualy i want to edit this as below ( using batch file)
=================================CENTRAL
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
220---------- 30
287---------- 53
718---------- 0
CITY
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
212---------- 47
221---------- 43
222---------- 65
==========================================
i hope u r clear, the 3 digit number should foollow with the number at the end of next line
i want to do all this using a batch file and the edited data should be saved to anotehr file test2.txt
can any one pls give me the codes for this batch file
Thank u very much