Friday, January 19, 2007

Your ToDo list on the command line.

Are you like me who likes working on the command line? Do you like to put little notes on little text? How about your making a searcheable ToDdo List on your the command line!
Why text files?
Well, beacause it's simple, lightweight, searcheable and can be easily edited. You don't need big programs like MS Outlook or Lotus Notes. You don't need webservers or databases to be up and running just to access your list. Just have the file!
How to do it?
First we need to create our list. It's as easy as this:
echo MY TODO LIST > todo.txt

You'll get a file with the name todo.txt which contains "MY TODO LIST" on the first line. Simple isn't it. So now let's add something :
echo post the todo article >> todo.txt

So, what this line does is it appends "post the todo article" in your file. Neat! Now we want dates! To add the current date to your todo list try this:
echo %date% post the todo article >> todo.txt

You can even use %time% to save the current time. Cool huh? Here's somthing that's a lot cooler! Searching. Lets say my todo list looks like this:
MY TODO LIST
Fri 01/19/2007
@H By some groceries
Fri 01/19/2007 Call Mom on Monday
Fri 01/19/2007 @H Mail the documents to Alner

I've marked those items which have high priority with @H. Make your own markers! @H is MINE! LOL. Seriously now. If you want to find items with @H do this:
find "@H" todo.txt
which means, "show me the lines that contain @H": The result is this.
Fri 01/19/2007 @H By some groceries
Fri 01/19/2007 @H Mail the documents to Alner
There you go! Your quick and easy todo list!

1 comment:

Brandon said...

I attempted to email your yahoo account. I'd like to know if we can make an arrangement for your blog. Please email me if you get this.