Skip to content

Commit

Permalink
Update 05-counting-mining.md with man date solution
Browse files Browse the repository at this point in the history
Closes #131 by adding `man date` to the solution for discovering the `+` option to the `date` command.

Recreates PRs #216 and #221. Note that MacOS X is now just macOS since the version number has moved on from 10 (X) to 13+.
  • Loading branch information
alex-ball committed May 9, 2023
1 parent 1d8b2e6 commit 90fbfb7
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions episodes/05-counting-mining.md
Original file line number Diff line number Diff line change
Expand Up @@ -608,10 +608,10 @@ Notice how we didn't type today's date ourselves, but let the

## Solution

Using `date --help` will show you that the `+` option introduces
a date format, where `%Y`, `%m` and `%d` are replaced by the year,
month, and day respectively. There are many other percent-codes
you could use.
Using `date --help` (on Git Bash for Windows or Linux) or `man date` (on macOS or Linux)
will show you that the `+` option introduces a date format,
where `%Y`, `%m` and `%d` are replaced by the year, month, and day respectively.
There are many other percent-codes you could use.

You might also see that `-I` is short for
[\--iso-8601](https://en.wikipedia.org/wiki/ISO_8601), which
Expand Down

0 comments on commit 90fbfb7

Please sign in to comment.