Nevermind...I just found it on another post:
PS> gc input.txt | ?{$_ -notmatch 'def'}
-Charlie
Nevermind...I just found it on another post:
PS> gc input.txt | ?{$_ -notmatch 'def'}
-Charlie
| Similar Threads | ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| problems with $var | select-string -pattern $string -q | Ben Christian | PowerShell | 3 | 08 Feb 2008 |
| Re: select-string exceptions | cmyers | PowerShell | 2 | 23 May 2007 |
| Re: select-string exceptions | cmyers | PowerShell | 0 | 23 May 2007 |
| Re: select-string exceptions | cmyers | PowerShell | 0 | 23 May 2007 |
| select-string exceptions | cmyers | PowerShell | 1 | 23 May 2007 |