Bash Scripting - Quoting and Expansion
You want to create a script that prints a greeting with a variable name that might be empty. Which is the best way to write it to avoid errors?
echo "Hello, $name!"
echo "Hello, $name!"
15+ quiz questions · All difficulty levels · Free
Free Signup - Practice All Questions