What does the number 2 mean on this grep command line?

grep -2riP

      

I've seen this on the fu command line. I checked the man page but couldn't find it, it's possible that I may have missed it.

+3


source to share


1 answer


From the grep man page:

-C NUM, -NUM , --context = NUM ​​Prints NUM lines of output. Places a line containing a group separator (described in the -group separator section) between adjacent groups of matches. With -o or --only-matching, this has no effect and a warning is issued.



so it's grep -2

equivalent grep -C 2

in which grep displays 2 lines before and after the match.

+5


source







All Articles