LAB5-CP1-Q1
command substitution
Checkpoint 1: Command Substitution
4 pts
Use $(date +%F) inside a string. Also demonstrate backticks.
Exam questions that reference this lab question
- CSCD240-E1-A-Q45 directly_tests Print "Backup taken on <today>" using $(date +%Y-%m-%d) as the date.
- CSCD240-E1-B-Q41 directly_tests Print "Backup taken on <today>" using $(date +%F).
- CSCD240-E1-C-Q06 directly_tests Recommended modern syntax for command substitution?