A MatchInfo object is the result produced by Select-String when text matches a pattern. It carries useful match details, including the filename, line number, and matching line. section 21.4
Finding HTTP 400-series errors
Search recursively through .log files with a regular expression, then format each MatchInfo result as a table showing Filename, LineNumber, and Line. The formatted results can be redirected to a file for web developers. section 21.4
PS C:\logfiles> get-childitem -filter *.log -recurse | select-string -pattern "\s40[0-9]\s" | format-table Filename,LineNumber,Line -wrap
Inspect a practical pipeline that creates MatchInfo objects with Select-String and formats their key properties. section 21.4
