Bash Scripting - Functions
What is the output of this script?
greet() {
echo "Hello, $1 and $2!"
}
greet Alice Bobgreet() {
echo "Hello, $1 and $2!"
}
greet Alice Bobgreet is called with two arguments: Alice and Bob. Inside the function, $1 is Alice and $2 is Bob.15+ quiz questions · All difficulty levels · Free
Free Signup - Practice All Questions