News for hackers. Stuff that matters.
Re:Ask HN: ideas for little projects you have? by slig on Monday September 28, 2009 @05:38PM (#849286)
Can be done with one line of cat and grep. So why did you bother to reinvent the wheel in a python script?
Re:Ask HN: ideas for little projects you have? by apgwoz on Monday September 28, 2009 @06:04PM (#849332)
Why yes, you happen to be correct. It can be done with cat and grep, and really you can do it without cat! However, it's perhaps desirable to be able to do things like edit the todo/tofix, delete them, export them to your todo application of choice, etc, etc, etc, etc. So, while you're correct in that you certainly can do it with grep, you're severely limiting yourself if you choose to.
Re:Ask HN: ideas for little projects you have? by slig on Monday September 28, 2009 @06:35PM (#849387)
I didn't read this when I posted, sorry.

> Ideally it'd be able to remove them as I fixed things. So I might say tofix fixed 3 and it'd remove the "TOFIX: ..." at line 3.

Re:Ask HN: ideas for little projects you have? by spectre on Monday September 28, 2009 @06:07PM (#849341)
cat <file> | grep "TOFIX\|TODO"