How can we extract lines appearing between { } in text file through batch file.
Text file would be in format:
Name : ABC
Place : xyz
Data :dd/mm/yyyy
{"return":"good","message":"ABC is present in xyz place","SSN":"-----------------345679HISKWBXMVTXVEULWXVC
VBXSWGVXBWSDCXLWUDV"}
I tried using the below code snippet, However it lists all the contents of text file . How can we extract the contents within {}
for /f "tokens=*" %%x in (filename) do set extract=!extract!%%x
question from:https://stackoverflow.com/questions/66061821/to-extract-lines-appearing-inbetween-in-text-file-through-batch-file