Thanks again for helping. I am putting the partial file which is used below.
test.txt
Code: Select all
Mainframe ID T03 -412
Check V = 5
Check End = 9
Mainframe ID T04 -412
Rohm = 1.51
Pwr = 7.42
Amp = 0.95
Cap = - 8.78
Bpwr = 588.24
Bchr = 6.358
Spwr = 90
Check voltage is 415.67
Mainframe ID T05 -412
Power dist : 0
Vdd = 0
Vcal = 0
On the old findrepl using /O:-7:-1(to replace findstr). To convert vertical data to horizontal for ease or comparing this command [findrepl "\r\n" "" ] is used
This gives me a horizontal data from vertical like below.
Code: Select all
D:\>< test.txt findrepl "Check voltage is" /O:-7:-1 | findrepl "\r\n" ""
Rohm = 1.51 Pwr = 7.42 Amp = 0.95 Cap = - 8.78 Bpwr = 588.24 Bchr = 6.358 Spwr = 90
on using the command below with the new script, It seems to copy everything
Code: Select all
D:\>< test.txt findrepl "Check voltage is" /O:-7:-1 /B:"\r\n" ""
Asigno removeCRLF: [\r\n] vs [\n\r]
Replace: procBlocks=true, removeCRLF = false
Mainframe ID T03 -412
Check V = 5
Check End = 9
Mainframe ID T04 -412
Replace + procBlocks + inRange, removeCRLF = false
Rohm = 1.51
Pwr = 7.42
Amp = 0.95
Cap = - 8.78
Bpwr = 588.24
Bchr = 6.358
Spwr = 90
Check voltage is 415.67
Mainframe ID T05 -412
Power dist : 0
Vdd = 0
Vcal = 00
This method works with the new findrepl but it adds new character
Code: Select all
D:\>< test.txt findrepl "Check voltage is" /O:-7:-1 | findrepl "\r\n" ""
Asigno removeCRLF: [undefined] vs [\n\r]
Rohm = 1.51 Pwr = 7.42 Amp = 0.95 Cap = - 8.78 Bpwr = 588.24 Bchr = 6.358 Spwr = 90
thanks again for helping.