This is what we usually write when we need to extract the entire line of text.
But the lines at the beginning of semicolon, for will also be ignored. Many times we need these lines. What should we do.
It’s too troublesome to use findstr and other external commands. It’s a good way to use EOL to ignore an invisible character, but it always ignores the line at the beginning of a character, and it’s also troublesome to get the invisible character.
In fact, there is a simpler way to put EOL at the end.
REM can extract all the lines, which can be used with tokens at the same time, but can’t use space as the separator.
for /f “delims= eol=” %%a in (a.txt) do echo.%%a