3 ms·
Why not use echo "crap" >> notes.md It even supports markdown :D
by d--b 10y ago
Why not use
echo "crap" >> notes.md
It even supports markdown :D
- tomcam 10y agoBecause what if you do this: # Good bye, everything up to this point echo "crap" > notes.md Or are in another directory
- Jach 10y agoIn .bashrc: notes() { echo $1 >> $HOME/notes.md } Now `notes 'blah blah'` wherever. I have a bunch of small functions like this for various things in my day-job, it helps a lot.
- therealmocker 10y agoBeware of keeping notes without properly escaping them. :)