Bash Scripting - Functions
What will be the output of this bash script?
say_hello() {
echo "Hello, $1!"
}
say_hello Alicesay_hello() {
echo "Hello, $1!"
}
say_hello Alicesay_hello takes one argument and prints it using $1.say_hello Alice replaces $1 with "Alice", so output is "Hello, Alice!".15+ quiz questions · All difficulty levels · Free
Free Signup - Practice All Questions