Question : Find text in file, and find next lines

I'm trying to craft a script that will read the contents of a text file, find the word "retail" and then return the 3rd line after this.  

My sample code only finds the text on the same lines...   What's the trick to getting the next line(s)?


set check=c:\temp\file.txt
for /f "tokens=1-4 delims=^>" %%a in ('find /i "RETAIL" %check%') do (
      set one=%%a
      set two=%%b
      set three=%%c
      set four=%%d
      call :sub
      )
goto :eof

:sub
echo %one% %two% %three% %four%

a relevant section of c:\temp\file.txt is included in the code.  I'm trying to get the value 62 from this (which changes over time in the file).


Code Snippet:
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
Concurrent User Retail 70 8 62 11.4

Answer : Find text in file, and find next lines

Yes, I see that as a problem now.  I think this adjustment should help.

~bp
" ( set Line=0 ) if not !Line! == -1 ( set /a Line+=1 if !Line!==3 ( echo %%A ) ) )
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
15:
16:
@echo off
setlocal EnableDelayedExpansion
setlocal EnableExtensions
set CheckFile=c:\temp\EE24995929.txt
set Line=-1
for /f "tokens=1 delims= " %%A in ('type "%CheckFile%"') do (
  if "%%A"=="
Retail
Random Solutions  
 
programming4us programming4us