Difference between revisions of "While ... do"

From wikieduonline
Jump to navigation Jump to search
(Created page with " <pre> #!/bin/bash while true; do ((my_var++)) echo $my_var done </pre>")
 
Line 9: Line 9:
 
done
 
done
 
</pre>
 
</pre>
 +
 +
 +
== See also ==
 +
* {{programming}}

Revision as of 08:10, 29 April 2020


#!/bin/bash

while true; do
  ((my_var++))
  echo $my_var
done


See also

Advertising: