Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

3
  • 5
    Could you explain why you think its better? Commented Nov 18, 2015 at 20:16
  • 5
    Shows the line number taking as reference the entire file. tail -f | nl shows the line number taking as reference the first output of tail. Commented Dec 26, 2017 at 13:48
  • 2
    This is very handy and addresses the OP's Title but not their question. They wanted to know how many times X appears in a file :P Commented Jun 18, 2019 at 4:02