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

Popular posts from this blog

Hatching array of circles in AutoCAD using c# -

ios - UITEXTFIELD InputView Uipicker not working in swift -

Python Pig Latin Translator -