If a.txt contains
a b c
abc
The command for /f %x in (a.txt) do echo %x
is printing
a
abc
What am I doing wrong?
If a.txt contains
a b c
abc
The command for /f %x in (a.txt) do echo %x
is printing
a
abc
What am I doing wrong?
for /f "tokens=*" %x in (a.txt) do @echo %x
The @echo will prevent the echo line from being printed
for /f "delims=|" %i in (a.txt) do @echo %i
Inside "delims=|" you can use any character for the delimiter that is not part of the file