Wednesday, December 11, 2019
Command line loops every line in file (DOS & SHELL)
DOS
for /f %i in (filename.txt) do echo %i
SHELL
while IFS= read -r line; do echo $line; done < filename.txt
Labels:
cmd,
command line,
dos,
loop file content,
looping file content,
shell
Subscribe to:
Posts (Atom)