bash set a variable as another variable code example
Example: how to put value of one variable into another in bash
#Do not add a space between variable and '='.
arg2=$arg1 #correct assignment
arg2 = $arg1 #incorrect assignment
#Do not add a space between variable and '='.
arg2=$arg1 #correct assignment
arg2 = $arg1 #incorrect assignment