Last active
May 10, 2021 16:42
-
-
Save SaundersB/574e35b23d732243f3fe0ca6afb56beb to your computer and use it in GitHub Desktop.
Create Sync Up Meeting Notes Script
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
YEAR=$(date +"%Y"); | |
MONTH=$(date +"%B"); | |
MONDAY=$(date -v-monday +"%m-%d") | |
FRIDAY=$(date -v+friday +"%m-%d") | |
THIS_WEEK_PATH="${YEAR}/${MONTH}"; | |
THIS_WEEK_FILE_NAME="${MONDAY}_${FRIDAY}"; | |
mkdir -p "./meeting-notes/sync-up/$THIS_WEEK_PATH/" | |
text="# Week of ${MONDAY} to ${FRIDAY}\\n | |
## Summary\\n | |
## Planned\\n | |
## Completed\\n | |
### Monday\\n | |
### Tuesday\\n | |
### Wednesday\\n | |
### Thursday\\n | |
### Friday\\n" | |
echo -ne '' "${text}" > "./meeting-notes/sync-up/$THIS_WEEK_PATH/$THIS_WEEK_FILE_NAME.md" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment