Create a gist now

Instantly share code, notes, and snippets.

@loreguerra /log.sh
Last active Mar 8, 2017

What would you like to do?
Simple app to log hours via command line
#!/bin/bash
cd ~/Dropbox/time-log/
echo "$1" "$2" >> log.txt
date "+DATE: %m/%d/%y%nTIME: %I:%M:%S%n%n" >> log.txt
#ADD THESE ALIASES TO BASH PROFILE
alias log='~/Dropbox/time-log/log.sh'
alias hours='cat ~/Dropbox/time-log/log.txt'
Owner

loreguerra commented Mar 8, 2017

In command line, from any folder type log PROJECT start (or end) to get a timestamp saved to log file.
To view hours, type hours.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment