43 Folders

Back to Work

Merlin’s weekly podcast with Dan Benjamin. We talk about creativity, independence, and making things you love.

Join us via RSS, iTunes, or at 5by5.tv.

”What’s 43 Folders?”
43Folders.com is Merlin Mann’s website about finding the time and attention to do your best creative work.

Command Line Time Log (Bash Script)

Hello,

I just put a script up on my site that I thought you guys might find helpful:

http://gregcerveny.com/20061109/keeping-a-time-log-bash-script/

n order to accurately judge how I?m spending my time, I?ve created a simple time log script. When I start my day I open up my command prompt and type.

l start

This creates a single line entry in log.txt

11/09/06 10:33:23 start

As you can see, some mornings I get a later start. Then, whenever I finish a task, or remember to make a log entry, I just summarize what I did since the last entry.

11/09/06 10:38:50 comment page
11/09/06 10:59:34 comment on flickr photos
11/09/06 11:00:27 look at analytics

Everything is always entered as a summary since the last entry. This prevents the need to regularly update the time log or to predict what I am doing in the future. The only time I enter a time specific entry is for starting/switching projects, finishing for the day, or taking a break.

1/09/06 11:01:32 break
11/09/06 11:04:23 start tadpoled

This is powered by a simple bash script I run within cygwin.

#!/bin/sh
MESSAGE=$*
echo -e `date '+%D %T'`"\t$MESSAGE" >> log.txt

I have it aliased with ?l? for log to make it easier.

alias l='log.sh'

It?s kept as simple as possible and really just a good check-in.

About gmcerveny

 
EXPLORE 43Folders THE GOOD STUFF

Popular
Today

Popular
Classics

An Oblique Strategy:
Honor thy error as a hidden intention


STAY IN THE LOOP:

Subscribe with Google Reader

Subscribe on Netvibes

Add to Technorati Favorites

Subscribe on Pageflakes

Add RSS feed

The Podcast Feed

Cranking

Merlin used to crank. He’s not cranking any more.

This is an essay about family, priorities, and Shakey’s Pizza, and it’s probably the best thing he’s written. »

Scared Shitless

Merlin’s scared. You’re scared. Everybody is scared.

This is the video of Merlin’s keynote at Webstock 2011. The one where he cried. You should watch it. »