diff --git a/bash.md b/bash.md index 40369cf0a..66afe4b77 100644 --- a/bash.md +++ b/bash.md @@ -637,6 +637,11 @@ $((a + 200)) # Add 200 to $a $(($RANDOM%200)) # Random number 0..199 ``` +```bash +declare -i count # Declare as type integer +count+=1 # Increment +``` + ### Subshells ```bash