Skip to content

Instantly share code, notes, and snippets.

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

Embed
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'
@loreguerra

This comment has been minimized.

Copy link
Owner Author

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
You can’t perform that action at this time.