‼
To give you the best experience, this site uses cookies. Continuing to use
9bis.net
means you agree to our use of cookies.
Start_Do_Done
(
en )
Last modification : 2013/01/26 19:16
Index
/
Recent changes
/
News
/
Forum
/
Download
/
Contact
Edit (
Help
) /
Rename
/
History
The '''start''' is a predefined loop. The syntax is{start ''listofvalues'' do ''command'' done}The command is executed for each element of the list of values. Example:{msh> start 1 1 1 1> do 1> date 1> sleep 1 1> done Thu Mar 19 16:06:26 GMT 2009 Thu Mar 19 16:06:27 GMT 2009 Thu Mar 19 16:06:28 GMT 2009}The list of values can be build with such specific expressions: '''1..10''' : will be replaced by '''1 2 3 4 5 6 7 8 9 10''' '''1..2..10''' : will be replaced by '''1 3 5 7 9''' '''*.txt''': will be replaced by the list of files that match the pattern '''*.txt''' To access the current value it is necessary to use the [for ... do ... done|?page=For_Do_Done] loop.
Password :
Wiki utilisant
PumaWiki 1.0
2024/05/16 09:39 -- en -- 3.142.197.212