Hacker News new | past | comments | ask | show | jobs | submit login

This will open all of the files with TODO in them in vim:

    alias todogrep="vim $(grep TODO . -rl)"
You can modify this easily, such as by using ripgrep, adding excludes, or doing regex to find TODO and FIXME together, but this is a quick one-liner to add to your `.bashrc`.





You can put the grep flags at the end? All these years, and I had no idea.

Depends on your grep. Reordering flags is typically a GNU getopts extension, not present in traditional UNIXes.



Guidelines | FAQ | Support | API | Security | Lists | Bookmarklet | Legal | Apply to YC | Contact

Search: