I am trying to assign the command line parameters to a variable (Entire argument to one variable) in shell script but it is not working Here is what I tried:
str1 ='$*'
str1 ="$*"
set str1 =$*
set str1 ="$*"
set str1 ='(echo $*)'
set str1 ='$*'
If you want to get one variable containig all arguments; use $@:
str1="$@"
"$@" - there is no way for an argument to contain a space, for example. In modern shells, use an array instead. This is a massive FAQ.
=)? You need some basics first. Try this, it talks about some of the basics of the basics.