bash arithmetic works in loop; after loop, var has no value
2266
Why is my variable local in one 'while read' loop, but not in another seemingly similar loop?
108795
How to use a variable's value as another variable's name in bash
28357
How can I sum two values and store the result in other variable?
112667
Bash variable substitution of variable followed by underscore
119933
Can I use a variable in a Bash brace expansion?
57554
Dynamic variable names in Bash
73085
Javascript (+) sign concatenates instead of giving sum of variables
43005
Why does this division result in zero?
35269
While loop stops reading after the first line in Bash
109443
Compare integer in bash, unary operator expected
11713
How to assign a heredoc value to a variable in Bash?
79458
Why sizeof(x++) does not increment the variable x value
81032
How to concatenate string variables in Bash
29106
Variable appears to change size on every loop iteration - what?
69001
"Command not found" when attempting integer equality in bash
103977
bash: looping through characters not working
117909
Why doesn't bash expand this variable when I prefix a command with a "one time variable assignment"