Skip to content

Instantly share code, notes, and snippets.

@sean-gilliam
Created August 19, 2015 19:43
Show Gist options
  • Save sean-gilliam/c77c739d2bbac2f7cfdf to your computer and use it in GitHub Desktop.
Save sean-gilliam/c77c739d2bbac2f7cfdf to your computer and use it in GitHub Desktop.
$search_term = "Typo"
$ignore = @("github", "tcp", "udp", "guid")
$lines = (gc export.txt) -notmatch [String]::Join('|',$ignore)| ?{$_.Contains($search_term)}
$lines|%{$_}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment