PowerShell 7.0.0-preview5ではSelect-Stringコマンドレットにもちょっとした工夫が取り込まれている。Select-Stringコマンドレットは、UNIX系のコマンドで言えばgrepコマンドに相当する機能で、指定したキーワードを含む行だけを抽出する処理を可能にしてくれる。
The Select-String cmdlet uses regular expression matching to search for text patterns in input strings and files. You can use Select-String similar to grep in UNIX or findstr.exe in Windows.
Windowsで面倒くさい作業だなと思っていたら、そういえばLinuxではコマンドラインでやってたっけ…と思い、Windowsでのやり方を調べました。 grep:テキストファイルの中身で該当する行だけ抽出するコマンド。 ・ファイル名有りのパターン(標準的な使い方 ...
I was building a proxy command of Select-String and noticed a bit of weirdness when I copied over the help for -Raw: "This is the results in" seems like a phrasing change artifact, like the sentence ...
一部の結果でアクセス不可の可能性があるため、非表示になっています。
アクセス不可の結果を表示する