If you’re like me, you probably are used to working with an GUI-based editor for your codes. Often times, however, I find myself having to debug or fix things on code that exists remotely with no ability to attach a GUI to said code.
Here’s a quick way to search for some text using grep:
grep -rnw dir -e "some text"
This will recursively (-r) search for “some text” inside the directory dir and return the filename and line number of all occurences of “some text”.
grep -rnw ../../src/ -e "Resizing of GPU grid vars not implemented at this time"