LoginSignup
1
1

More than 5 years have passed since last update.

WindowsでGrepする方法(ワンライナーで)

Posted at

パワーシェルのコマンドレットを使うと、Windowsでも簡単に横断検索できます。

grep風コマンド
Select-String "検索キーワード" C:\file\*.xml | Out-File -FilePath C:\file\検索結果.txt

正規表現を使う場合は、
Select-String -Pattern "[\d]{,2}"

のようにオプションを付けます。

1
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
1