0
Q:

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
0

New to Communities?

Join the community