Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SHELL

for loop batch

for %%variable in (strings/numbers) do( 
	your code 
)  
for /f ["options"] %%variable in (filename) do (
	your code 
)                
for /l ["options"] %%variable in (start_value, increment_by ,end_value) do (
	your code
)
Here ["options"]:
delims=xxx   The delimiter character(s). Default value = a space

eol=;        Default value is ; .If the line starts with ; 
it will be treated as comment and it will
not be printed in the output. 
You can change the Default value to any other character.

tokens=n     Specifies which numbered items to read from each line. 
Default value is 1.
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #loop #batch
ADD COMMENT
Topic
Name
9+8 =