Skip to content

Instantly share code, notes, and snippets.

@minism
Created November 16, 2011 19:11
Show Gist options
  • Save minism/1371019 to your computer and use it in GitHub Desktop.
Save minism/1371019 to your computer and use it in GitHub Desktop.
#!/bin/bash
# Record work @ current time with message
if [ ! -n "$1" ]
then
echo "give a message!"
exit
fi
file=`date "+%A"`
time=`date "+%H:%M"`
str="$time $@"
# Append to day of week file
echo $str >> ~/work/time/$file.txt
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment