Skip to content

Commit

Permalink
Update bash.md (rstacruz#1917)
Browse files Browse the repository at this point in the history
* Update bash.md

declare variable as integer, then increment

* Update bash.md

Co-authored-by: Rico Sta. Cruz <[email protected]>
  • Loading branch information
soniah and rstacruz authored Dec 15, 2022
1 parent 859d8e4 commit 83017d3
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions bash.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 83017d3

Please sign in to comment.