mirror of
https://github.com/you-dont-need/You-Dont-Need-GUI.git
synced 2025-01-17 21:38:30 +01:00
Merge pull request #14 from jakebrinkmann/master
💥 Add finding a date in the future
This commit is contained in:
commit
ee11bf9697
26
readme.md
26
readme.md
@ -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. [find a stale file](#findfile)
|
||||
1. [show a calendar](#showcal)
|
||||
1. [find a future date](#calcdate)
|
||||
|
||||
|
||||
## <a id="copyfile"></a>copy a file
|
||||
@ -188,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
|
||||
```
|
||||
## <a id="findfile"></a>find a stale file
|
||||
|
||||
@ -203,13 +204,30 @@ find my_folder -mtime +5
|
||||
|
||||
## <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
|
||||
```
|
||||
|
||||
## <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._
|
||||
|
Loading…
x
Reference in New Issue
Block a user