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*

6
  • +1 even if the question was about grep :) Commented Aug 26, 2022 at 14:01
  • @Emmanuel version with grep added for completeness Commented Aug 26, 2022 at 14:19
  • I am pasting the exact command, yet output is completely empty. I tried it with grep 3.6 and 3.7, if that makes any difference. Commented Aug 26, 2022 at 14:37
  • @vic file generated on Windows? Not GNU grep? Commented Aug 26, 2022 at 14:43
  • 1
    Beware there's a NUL character at the end of grep's output. It also assumes there's only one matching section per file (the * should probably be *?). Commented Aug 26, 2022 at 19:15