I need some help with switch case statements in shell scripting. Here I am trying to read the Variable name and assign it to a switch case and based on the value of the switch case I want to assign a new name for the respective Variable name and pass it to other script.
name = "$(Release.TriggeringArtifact.Alias)";
case $name” in “_app1”) echo “appFIRST”;;
“_app2”) echo “appSECOND”;;
“_app3”) echo ”appTHIRD”;;
*)
Echo “default case”;;
esac
So here I want to assign the output to a variable and read it in the other script.