What does `grep -n` option mean?

2

When I use find-grep in Emacs, this command is appeared. find . -type f -exec grep -nH -e {} +

I searched -n option in man grep. Why is not there? And What does it means?

ironsand

Posted 2013-09-11T11:07:12.250

Reputation: 1 757

Answers

3

From man grep on my computer:

  -n, --line-number
        Prefix each line of output with the line number within its
        input file.

Hennes

Posted 2013-09-11T11:07:12.250

Reputation: 60 739

Sorry, I searched it again then I found the explanation. I must have been doing something completely wrong... – ironsand – 2013-09-11T11:27:51.010