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*

2
  • 3
    It would benefit your question to include some actual lines from the log file. I doubt that you will have to match the actual pathname, but that you instead could extract the pathnames based on other information in the log file. Commented Aug 22, 2022 at 13:07
  • grep -Po '\d+/\d+/[\w-]+\.\w+' with GNU grep may or may not be enough, hard to tell with the very few requirements you give about what should and shouldn't be matched. Commented Aug 22, 2022 at 13:41