Showing posts with label loop file content. Show all posts
Showing posts with label loop file content. Show all posts

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