Hands-on task
This task is step 5 of the course “Bash scripts: from a loop to a robust script”
Argument with a default value
Write /usr/local/bin/say: it prints the text passed as the first argument, and if no argument is passed — it prints hello (the default value).
Reference:chmod
What you'll practise:
- bash scripts
- positional arguments
- parameter substitutions
- default values
- chmod