From fa4db19572f13b505b8503bfc1a0e97640a6ca33 Mon Sep 17 00:00:00 2001 From: Jake Brinkmann Date: Fri, 11 Nov 2016 17:43:17 -0600 Subject: [PATCH 1/4] :boom: Add finding a date in the future --- readme.md | 19 ++++++++++++++++++- 1 file changed, 18 insertions(+), 1 deletion(-) diff --git a/readme.md b/readme.md index b327353..c2336bb 100644 --- a/readme.md +++ b/readme.md @@ -32,6 +32,7 @@ As a computer expert, we want to be more efficient and do our jobs better. We kn 1. [list folder contents](#listfolder) 1. [find a stale file](#findfile) 1. [show a calendar](#showcal) +1. [find a future date](#calcdate) ## copy a file @@ -197,11 +198,27 @@ find my_folder -mtime +5 **STOP LOOKING UP WHAT DAY IT IS BY CALENDAR WIDGETS** -Display a text calendar, highlighting the current day +Display a text calendar ``` cal ``` +## find a future date + +**STOP USING WEBAPPS TO CALCULATE FUTURE DATES** + +What is todays date? + +``` +date +%m/%d/%Y +``` + +What about a week from now? + +``` +date -d "+7 days" +``` + === _Remember, you can always google or `man` the commands you are not familiar with._ From 31199258a057764695a5b540ec68e0ac9ad62139 Mon Sep 17 00:00:00 2001 From: Jake Brinkmann Date: Fri, 11 Nov 2016 17:47:29 -0600 Subject: [PATCH 2/4] :scissors: Remove mention of "today" in "cal" call --- readme.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/readme.md b/readme.md index c2336bb..121ddd1 100644 --- a/readme.md +++ b/readme.md @@ -196,7 +196,7 @@ find my_folder -mtime +5 ## show a calendar -**STOP LOOKING UP WHAT DAY IT IS BY CALENDAR WIDGETS** +**STOP LOOKING UP WHAT THIS MONTH LOOKS LIKE BY CALENDAR WIDGETS** Display a text calendar From 455e4ddf54192e51072d1586416f62a2398ccdb0 Mon Sep 17 00:00:00 2001 From: Jake Brinkmann Date: Fri, 11 Nov 2016 21:39:40 -0600 Subject: [PATCH 3/4] :warning: Add linux/osx commands for date --- readme.md | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/readme.md b/readme.md index 121ddd1..6026b49 100644 --- a/readme.md +++ b/readme.md @@ -216,8 +216,9 @@ date +%m/%d/%Y What about a week from now? -``` -date -d "+7 days" +```bash +date -d "+7 days" # On linux +date -j -v+7d # On osx ``` === From 0aa8cc2a52a11b68ff8cbc4a03dfacd39a813136 Mon Sep 17 00:00:00 2001 From: Jake Brinkmann Date: Fri, 11 Nov 2016 21:48:25 -0600 Subject: [PATCH 4/4] :sparkles: Format Linux/MacOS comments --- readme.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/readme.md b/readme.md index b99e41a..7e1d5e7 100644 --- a/readme.md +++ b/readme.md @@ -189,8 +189,8 @@ ls -la my_folder **STOP OPENING YOUR FINDER OR FILE EXPLORER** ``` -tree # on Linux -find . -print | sed -e 's;[^/]*/;|____;g;s;____|; |;g' # on macOS +tree # on Linux +find . -print | sed -e 's;[^/]*/;|____;g;s;____|; |;g' # on macOS ``` ## find a stale file @@ -225,8 +225,8 @@ date +%m/%d/%Y What about a week from now? ```bash -date -d "+7 days" # On linux -date -j -v+7d # On osx +date -d "+7 days" # On Linux +date -j -v+7d # On MacOS ``` ===