mirror of
https://github.com/bregman-arie/devops-exercises.git
synced 2026-02-05 16:19:10 +00:00
319 B
319 B
Great Day
Objectives
- Write a script that will print "Today is a great day!" unless it's given a day name and then it should print "Today is "
Note: no need to check whether the given argument is actually a valid day
Solution
#!/usr/bin/env bash
echo "Today is ${1:-a great day!}"