I'm trying to parse a text file using this common statement:
for /F "tokens=1,2,3* delims= " %%a in (input.txt) do set rev=%%c
Unfortunately, my input.txt file looks like this:
FIELD1 FIELD2 "FIELD3"
(The last field is in double-quotes)
Is there a way that I can use a DOS for command to grab just FIELD3 instead of "FIELD3" ?
Can special characters be escaped in DOS?
I'd hate to have to resort to SED or something to change the quotation marks into commas.
Looks like I found a pre-existing answer...