Bash Scripting - Functions
What will be the output of this bash script?
greet() {
echo "Welcome, $1!"
}
greet Usergreet() {
echo "Welcome, $1!"
}
greet Usergreet takes the first argument $1 and echoes a welcome message.User, so $1 is replaced by User.15+ quiz questions · All difficulty levels · Free
Free Signup - Practice All Questions