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*

1
  • Welcome to the site. While your approach will work if the names on the list mentioned by the OP are the result of a simple pattern matching - which may very well be the case - please note that the OP stated that the filenames to exclude are stored in a specific file; you may want to expand your answer so as to read the exclusion patterns from that file instead of relying on one static pattern, or having to type-copy potentially multiple patterns to the console. Commented Feb 28, 2020 at 11:39