Select-String searches file content for a literal string or regular expression pattern and returns matching lines. In cross-platform system-information automation, it extracts targeted records from Linux files and command output instead of processing every line. section 14.1.2
Extract total memory
Select-String -Path /proc/meminfo -Pattern 'MemTotal' | ForEach-Object { [regex]::Match($_.Line, "(\d+)").Value } returns the numeric memory value from the matching line.

