From d6c01418086e8cdf93660466da5352015553ddda Mon Sep 17 00:00:00 2001 From: Jeff Oliver Date: Fri, 11 May 2018 12:06:17 -0700 Subject: [PATCH] Update new file name and add explanation When creating `2016-07-19_JAi-revolution.tsv` and `2016-07-19_JAiw-revolution.tsv`, rationale for date was lacking. --- _episodes/05-counting-mining.md | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/_episodes/05-counting-mining.md b/_episodes/05-counting-mining.md index 1c88ff9d..bc979844 100644 --- a/_episodes/05-counting-mining.md +++ b/_episodes/05-counting-mining.md @@ -499,7 +499,8 @@ $ grep -i revolution *.tsv {: .bash} This script looks in the defined files and prints any lines containing `revolution` -(without regard to case) to the shell. +(without regard to case) to the shell. We add today's date to the filename using +[ISO format](https://en.wikipedia.org/wiki/ISO_8601) of `YYYY-MM-DD`. ~~~ $ grep -i revolution *.tsv > results/2016-07-19_JAi-revolution.tsv @@ -515,7 +516,7 @@ Thankfully, the `-w` flag instructs `grep` to look for whole words only, giving us greater precision in our search. ~~~ -$ grep -iw revolution *.tsv > results/DATE_JAiw-revolution.tsv +$ grep -iw revolution *.tsv > results/2016-07-19_JAiw-revolution.tsv ~~~ {: .bash}