A simple method of note taking in the Terminal

May 01, '03 09:22:00AM

Contributed by: pink

For those that (like me) always have a Terminal open anyway, and that are looking for an easy way to make notes, try this alias:

 alias note 'date >> ~/unix/notes.txt; tee -a ~/unix/notes.txt > /dev/null' 
This alias appends date and time information to the file described, and then appends everything you type in the terminal until you stop with Control-C. The tee command actually forks input to a file and to standard output; we don't need the latter, so we send it into oblivion. Obviously, you can have several of those writing to different files. To me, this is easier than opening a text editor.

Comments (13)


Mac OS X Hints
http://hints.macworld.com/article.php?story=20030427153848404