Simple CheatSheet
    • PythonPython
    • DatabaseDatabase
    • Operating SystemOperating System
    • ProgrammingProgramming
    • Linux CommandLinux Command
    • ToolkitToolkit
    • OtherOther
    • Keyboard ShortcutsKeyboard Shortcuts
Dart
Dart
HTML Canvas
HTML Canvas
Redis
Redis
Bash
Bash
JavaScript
JavaScript
Bash
Bash
Bash Loops

Auto increment

i=1
while [[ $i -lt 4 ]]; do
    echo "Number: $i"
    ((i++))
done
Comments
Related
  • Also see
  • Miscellaneous
  • Bash History
  • Bash Options
  • Bash Functions
  • Bash Loops
  • Bash Conditionals
  • Bash Dictionaries
  • Bash Arrays
  • Bash Parameter expansions
  • Getting Started