ファイルやディレクトリの一覧から、必要な行だけを抜き出して表示する例を考えよう。 まず、次のようなディレクトリがあったとする。 PowerShell CoreではSelect-Stringコマンドレットがgrepコマンドと似たような動きをする。 そこでSelect-Stringコマンドレットを ...
PowerShell 7.0.0-preview5ではSelect-Stringコマンドレットにもちょっとした工夫が取り込まれている。Select-Stringコマンドレットは、UNIX系のコマンドで言えばgrepコマンドに相当する機能で、指定したキーワードを含む行だけを抽出する処理を可能にしてくれる。
Business.com on MSN
Understanding functions in PowerShell
By defining Microsoft PowerShell functions within PowerShell modules, you can organize your scripts, avoid duplicating code, ...
In the last paragraph of my column "How To Debug a PowerShell Script," I mentioned that punctuation can be problematic in PowerShell strings. I often catch myself omitting apostrophes, for example, ...
一部の結果でアクセス不可の可能性があるため、非表示になっています。
アクセス不可の結果を表示する