Created
November 24, 2016 13:23
-
-
Save roehst/f84ce7570545bb6e0a7fab5b102b7952 to your computer and use it in GitHub Desktop.
Very simple script for a daily to-do list
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
timestamp=$(date +%y%m%d) | |
folder="~/.today" | |
eval folder=$folder | |
mkdir $folder -p | |
file="~/.today/$timestamp.txt" | |
eval file=$file | |
touch $file | |
task=$* | |
if [ -z "$task" ]; then | |
cat $file | |
else | |
echo "Add task to $file: $task" | |
echo "$task" >> $file | |
fi |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Just put it on your /usr/bin folder and use it.
today
shows tasks for today.today Something I need to do
adds a task.