Can someone help me read the first line of output from findstr to a variable?
This is what i have so far:
for /f "tokens=1 delims=" %%a in ('findstr "<text>" file.xml') do @set var=%%a
but that just adds the last line of the output from findstr, not the first.
Basically the file is a standard .xml rss feed, and I only wish to set the first instance of "<text>variable</text>" as my variable.
<?xml version="1.0" encoding="UTF-8"?>
I really don't care if my variable has the <text> tags in it either: 1234567 or text>1234567</text> is AOK!
THANK YOU! I have been at this for hours now :(