News for hackers. Stuff that matters.
Re:Simple note taking from the command line by ConfucianNardin on Monday October 02, 2017 @09:29AM (#15383634)
This will work fine until the day when you mistype >> into >, and all your notes are gone.
Re:Simple note taking from the command line by hk__2 on Monday October 02, 2017 @03:57PM (#15387373)
Not if you have `set -C` in your ~/.bashrc, which prevents you from overriding files with >.
Re:Simple note taking from the command line by wyldfire on Monday October 02, 2017 @01:29PM (#15385884)
That seems like a real risk, true.

But at least at $THE_OFFICE, I'm lucky that there's a trivial-to-recover ~/.snapshot/hourly.?/notes file. YMMV.

Re:Simple note taking from the command line by rhizome on Monday October 02, 2017 @03:23PM (#15387045)
A `cat -i` switch could be good.
Re:Simple note taking from the command line by ConfucianNardin on Tuesday October 03, 2017 @12:41PM (#15393752)
A flag for cat won't help you - it's your shell that does the redirection. You're looking for `set -o noclobber` (same as `set -C`).
Re:Simple note taking from the command line by rhizome on Wednesday October 04, 2017 @03:32PM (#15403735)
Ah, let's go with `> -i` then! :)