4 ms·
To log bits of information quickly I added this to my .bashrc: log(){ date >> ~/log/$* ; cat >> ~/log/$* ; } I try to keep it simple but I keep several files.
by tep 14y ago
To log bits of information quickly I added this to my .bashrc:
log(){ date >> ~/log/$* ; cat >> ~/log/$* ; }
I try to keep it simple but I keep several files.
There is one for general ideas which is called "projects", another one to log new words I've learnt called "voc.en" (English is a second language for me)
and so on.
For example:
log projects <enter>
write something cool...
<enter>
<ctrl+c>
--------------------
cat log/projects
Mo 10. Sep 07:16:02 CEST 2012
write something cool...
- tathagatadg 14y agoAnd if you have the log folder on dropbox, it is accessible everywhere.
- CrankyPants 14y agoAccessible everywhere, indeed. Doubly so for nosey Dropbox employees!
- CrankyPants 14y agoWhy the downvote? Just going from memory, their biggest security-breach PR disasters have been caused more often by sloppy employee security than by outside actors.
- deleted 14y ago[deleted]
- aaronpk 14y agoThis is a great idea! I've been using text docs like this for a while, but the problem that keeps happening to me is I go open the file to add something to it, and get distracted by reading the stuff in the file and forget what I was about to add! I'm going to try this CLI method since it'll be impossible to read old stuff and get distracted while trying to add something.
- aaronpk 14y agoHere's my entry in my bash profile: log() { echo >> ~/Dropbox/NotationalVelocity/$*.txt ; date >> ~/Dropbox/NotationalVelocity/$*.txt ; cat >> ~/Dropbox/NotationalVelocity/$*.txt ; } We'll see how this goes!