Select-string on the result of select-string?
i'm dealing large text file, has multiple matches data i'm looking for. able use combination of -context piped select-object -first getthe exact, 20 line section of text i'm interested in. i further select-string on result, never works. if get-member on the object, type microsoft.powershell.commands.matchinfo example: $hba = get-content c:\hba-info.txt $info = $hba | select-string -pattern "hba general information" -context 20 | select-object -first 1 $info hba general information -------------------------------------------------------------------------------- -------------------------------------------------------------------------------- host name : hq1md17 hba instance ...