Bash Scripting - User Input
How can you combine default value substitution with a conditional check to print "Valid" only if input is non-empty, else print "Default used"?
[ -n "$input" ] tests if input is non-empty.15+ quiz questions · All difficulty levels · Free
Free Signup - Practice All Questions