Nevermind...I just found it on another post:

PS> gc input.txt | ?{$_ -notmatch 'def'}



-Charlie