Re:PowerShell is open sourced and is available on Linux
by jodrellblank on Friday August 19, 2016 @04:33PM
(#12323258)
I'm not certain what you're getting at; -match doesn't handle multiple matches so you can't replicate the above just with it? Yes, that's a bit annoying. You could match line by line:
which is ugly, but doesn't use [regex]::Matches. But you can do:
or other variants of Select-String, depending on exactly what data you want, without departing into the .Net Framework too far.
[ Parent
| on HN ]
There are no comments on this comment yet.