another reply to “How to match array elements with a file path”

Welcome Forums General PowerShell Q&A another reply to “How to match array elements with a file path”

Viewing 3 reply threads
  • Author
    Posts
    • #202997
      js
      Participant
      Topics: 30
      Replies: 828
      Points: 2,553
      Helping Hand
      Rank: Community Hero

      Here’s another way to match against two patterns:

      dir | where { $_.fullname | select-string -notmatch corp,sales }
      
    • #203201
      Participant
      Topics: 18
      Replies: 575
      Points: 42
      Rank: Member

      Are you asking a question?

      dir | where {$_.fullname -match “vid|down”}

    • #203225
      Participant
      Topics: 12
      Replies: 1642
      Points: 2,660
      Helping Hand
      Rank: Community Hero

      Someone closed\resolved the forum thread:

      https://powershell.org/forums/topic/how-to-match-array-elements-with-a-file-path/

      This thread was started so that js could confuse everyone starting a thread with an answer to an unlinked forum thread. This thread should be set as resolved as well.

    • #203228
      js
      Participant
      Topics: 30
      Replies: 828
      Points: 2,553
      Helping Hand
      Rank: Community Hero

      I wanted to add another answer to the other thread. I don’t think any threads should be closed.

Viewing 3 reply threads
  • The topic ‘another reply to “How to match array elements with a file path”’ is closed to new replies.