bash - How to assign Command line arguments to Variables in Shell Script -
i trying assign command line parameters variable (entire argument 1 variable) in shell script not working here tried:
str1 ='$*' str1 ="$*" set str1 =$* set str1 ="$*" set str1 ='(echo $*)' set str1 ='$*'
if want one variable containig all arguments; use $@
:
str1="$@"
Comments
Post a Comment