- 何か入力するまで一時停止させる
- $host.UI.RawUI.ReadKey()
- ディレクトリ配下のファイルに対して文字列検索し、文字コード指定でファイルに書きだす
- Get-ChildItem . -include xx.java -Recurse -Force | Select-String "検索文字列" | Select Line | out-file zz.txt utf8
- ファイル内テキスト置換
- Get-Content zz.txt | % { $_ -replace " ", "" } | out-file xx.txt utf8
- ファイル削除
- rm xx.txt
More than 5 years have passed since last update.
Register as a new user and use Qiita more conveniently
- You get articles that match your needs
- You can efficiently read back useful information
- You can use dark theme