Back to Devops Exercises

Basic Date

topics/shell/solutions/basic_date.md

latest183 B
Original Source

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