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.

3
  • ...and on this basis the question is a duplicate. But I can't find it. Commented Jun 12, 2018 at 23:04
  • False. By changing the last grep instruction, filename is printed correctly. Commented Jun 13, 2018 at 10:13
  • And I don't understand why just the last redirection of stdout will print the "wrong" filename, if there's a CR/LF ending line. (false, I've double checked now). Commented Jun 13, 2018 at 10:19