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
r– Recursive – I almost always want
grepto 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.