Code: Select all
for /f "tokens=1 delims=:" %%i in ('findstr /n "^END" %text_file1%') do set count=%%i
count line by line untill the line having "END"
Code: Select all
for /f "delims==" %%a in (%text_file1%) do set lastline=%%a
store the lastline string in %%a
Code: Select all
for /f "skip=1 delims=*" %%a in (test1.txt) do (
echo %%a >> "test1_copy.txt"
)
read in the test1.txt line by line until end of file and export them to the new text file test1_copy.txt
I get confused on
Code: Select all
"delims=:" "delims==" "delims=*" and "delims= "
Are all of them used for looping on every whole new line?
Any differences/explanations on putting : = * space in delims?
Thanks in advance.