Merge pull request #14 from jakebrinkmann/master

💥 Add finding a date in the future
This commit is contained in:
Robert Chang
2016-11-12 17:15:10 +11:00
committed by GitHub

View File

@@ -33,6 +33,7 @@ As a computer expert, we want to be more efficient and do our jobs better. We kn
1. [tree view a folder and its subfolders](#treeview) 1. [tree view a folder and its subfolders](#treeview)
1. [find a stale file](#findfile) 1. [find a stale file](#findfile)
1. [show a calendar](#showcal) 1. [show a calendar](#showcal)
1. [find a future date](#calcdate)
## <a id="copyfile"></a>copy a file ## <a id="copyfile"></a>copy a file
@@ -203,13 +204,30 @@ find my_folder -mtime +5
## <a id="showcal"></a>show a calendar ## <a id="showcal"></a>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, highlighting the current day Display a text calendar
``` ```
cal cal
``` ```
## <a id="calcdate"></a>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?
```bash
date -d "+7 days" # On Linux
date -j -v+7d # On MacOS
```
=== ===
_Remember, you can always google or `man` the commands you are not familiar with._ _Remember, you can always google or `man` the commands you are not familiar with._