Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SHELL

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
 
PREVIOUS NEXT
Tagged: #put #variable #bash
ADD COMMENT
Topic
Name
2+4 =