S
sali
i have a huge text file, having multiple lines [allways the same number for
each] for one record, and want to parse it in the loop.
thought to use:
bat1.bat -----------
:lab
set /p line1=
set /p line2=
set /p line3=
goto lab
--------
and later:
type text1.txt | bat1.bat
expecting bat1 to readin whole stdin, assigning successive lines to vars
line1, line2, line2 in turn, until file sent to stdin exhausted.
but, just line1 set to first line, and nothing else.
what's wrong, or "set /p" doesn't able to read stdin?
is there some easy other way to parse multiple lines text file?
thnx
each] for one record, and want to parse it in the loop.
thought to use:
bat1.bat -----------
:lab
set /p line1=
set /p line2=
set /p line3=
goto lab
--------
and later:
type text1.txt | bat1.bat
expecting bat1 to readin whole stdin, assigning successive lines to vars
line1, line2, line2 in turn, until file sent to stdin exhausted.
but, just line1 set to first line, and nothing else.
what's wrong, or "set /p" doesn't able to read stdin?
is there some easy other way to parse multiple lines text file?
thnx