for ... do ... done ( en )Last modification : 2013/01/26 19:16 |
|
---|---|
Index / Recent changes / News / Forum / Download / Contact | Edit |
The for is a predefined loop. The syntax is The command is executed for each element of the list of values. Example: 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 The previous example can be written as
|
|
Wiki utilisant PumaWiki 1.0
2024/12/21 17:50 -- en -- 18.189.189.251 |