I have the following SED command:
sed -n /"PartA/,/PartB/p" Input.txt > Output.txt
Essentially, I am using this to extract any bunch of text between PartA & PartB in the Input.txt file and write it to Output.txt
Is there any way I can do this without the use of SED , since SED is not native to windows.
So i have a log file that has a lot of text with something like this:
ABC
DEF
GHI
PARTA
123
456
PARTB
JKL
MNO
PQR
PARTA
789
PARTB
STU
VWX
I want the output to look like this
PARTA
123
456
PARTB
PARTA
789
PARTB