While ... do

From wikieduonline
Revision as of 08:10, 29 April 2020 by Welcome (talk | contribs) (Created page with " <pre> #!/bin/bash while true; do ((my_var++)) echo $my_var done </pre>")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search


#!/bin/bash

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

Advertising: