Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!

Click here to return to the 'A simple method of note taking in the Terminal' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
A simple method of note taking in the Terminal
Authored by: ncianca on May 02, '03 02:42:56AM
Here is another variation. This one will work save your note up until you hit the return key. You can also edit the line(s) using cursor keys or binded keys (ctrl-a, ctrl-d, etc) . I've also added a timestamp format in the form of YYYY- MM-DD HH:MM. Each entry would appear after the time stamp. Very useful for short things, like urls, etc. The ${1} variable tell's echo to take the keyboard input of anything you type after the alias name of note, as in

% note this is a note[RETURN]
Keep in mind that you can make some pretty long notes this way.

alias note "echo `date +'%Y%m%d %H:%M - '` ${1} >> /tmp/notes.txt"

[ Reply to This | # ]