PrepOps
Search
Topics
Difficulty
My Progress
Shell
Write a script to print "yay" unless an argument was passed and then print that argument
Difficulty: unrated
Source:
bregman-arie/devops-exercises
by
Arie Bregman
Answer
echo "${1:-yay}"