Right now I need to loop through the content of a file,
This loop works fine and prints the content of the file
for /F %%x in (Test.txt) do @echo %%x
However because later on I want to do something else with the content I need to have more than one statement in this loop therefor I would like to use the following syntax:
for /F in (Test.txt) do
some more statements
done
Unfortunately the latter does not work? How do I get a for loop to execute multiple commands?
bash. Looks more likebatchto me.gotostatement inside a codeblock which then exits the loop, where this question is an attempt to run multiple commands for a singleforstatement.