Skip to content

Instantly share code, notes, and snippets.

@viniroger
Created January 26, 2018 13:54
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save viniroger/d87eaaad0808856d4b6ed1c37ac71f42 to your computer and use it in GitHub Desktop.
Save viniroger/d87eaaad0808856d4b6ed1c37ac71f42 to your computer and use it in GitHub Desktop.
Loop infinito
#!/bin/bash
# Script para imprimir sequência de números infinitamente
numero=0
while true; do
echo $numero
sleep 1
numero=$((numero + 1))
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment