assign a variable with the value from a command + bash
136952
Assign command output to a variable and do if branch on the return value
125350
How to create a command with key values?
16880
Create variables and assign values via loop (bash)
119518
bash function cannot change the value of a local variable when called by $()
99589
Use variable inside bash brace expansion
109166
How to assign result of sed to variable
85013
New line in bash variables
153879
How to pass parameters to function in a bash script?
72878
Variables set in a bash 'while read' loop are unset after it
77899
Bash: Access parameter passed to last command
57604
Set variable conditionally on command line
130042
How to pass argument to script which is input to bash
132973
How to return a string value from a Bash function
92716
How to make a variable from a subshell available in the parent shell
82465
assign a value to a variable in a loop
104821
How do I use a temporary environment variable in a bash for loop?
140031
xargs loop with input variable for use in multi-command