Hi,
$status = Select-String -path "X:Fileslog.txt" -Pattern "Running" -CaseSensitive write-output "$output" + " " + "Ain't life grand?"
It doesn’t work. How do I output only the matching text and store it as string?
submitted by /u/nappetass
[link] [comments]
The post How do I output only the matching text of select-string and store it as a string? appeared first on How to Code .NET.