問題タブ [select-string]
For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.
powershell - PowershellのSelect-Stringメソッドの「行」を構成するものは何ですか?
Powershell では、(キャリッジ リターン + 改行) を行末Select-String
と見なすことを期待します。\r\n
ただし、以下に示すように、abc
入力全体に一致します。
文字列を 2 つの部分に分割すると、Select-String
期待どおりに動作します。
Select-String
行が で終わる文字列を指定し\r\n
、このコマンドレットが一致を含む文字列のみを返すようにするにはどうすればよいですか?