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
Here is what the above code is Doing:
1. arg1 is assigned the value of the first command line argument.
2. arg2 is assigned the value of arg1.
3. arg2 is assigned the value of the first command line argument.