How do you assign the value of a parameter to a variable in UNIX?
Remove set
.
FAV_COLOR=$1echo "My fav color is ${FAV_COLOR}"
Or if you want to set it so that it is available to subsequent programs run in the shell:
export FAV_COLOR=$1echo "My fav color is ${FAV_COLOR}"
The export
keyword is described fairly well here.