Grep flags that I like

Here are some grep flags that I use often, almost to the point of automatically appending them regardless of the search

I grep for things so many times a day that I don’t even think about it. I know I need to find something and I immediately start typing the command.

I wanted to share with you the three flags that I use most often when running the grep command.

  • r – Recursive – I almost always want grep to go into sub-folders of where I am looking.
  • i – Ignore Case – I almost never care about case so will want to find ‘This’, ‘THIS’, and ‘this’.
  • n – Number – I like to see the line number after my file it helps give me a sense of where in the document the match was found.

Recent posts View all

Web Dev

Check in with your database

It pays to take a step back and look at how your database is set up every so often. You will often find quick wins and hidden tech debt.

Web Dev Productivity

Keeping on top of website updates

Learn what website updates are, what they entail, why they are important, and how we can help