devops-exercises/topics/shell/solutions/basic_date.md

14 lines
184 B
Markdown
Raw Normal View History

2021-11-07 16:54:06 +01:00
## Basic Date
### Objectives
1. Write a script that will put the current date in a file called "the_date.txt"
### Solution
```
#!/usr/bin/env bash
echo $(date) > the_date.txt
```