* 文字列・ファイルのテキスト検索 - Select-String [#b98599f8]
** ファイルのテキスト検索 [#wd2b41ed]
Select-String -Path "*.txt" -Pattern "hello"
** dirコマンドレットと組み合わせて再帰的に [#af2f208f]
dir -Recurse -Filter "*.txt" | Select-String "hello"
** OR検索 [#d030170d]
Select-String -Path "*.txt" -Pattern "hello","world"
"hello"または"world"がある行にマッチする。
** NOT検索 [#j7b088fe]
Select-String -Path "*.txt" -NotMatch -Pattern "hello","world"
"hello"も"world"もない行にマッチする。
** 参考 [#w91e8459]
http://blogs.technet.com/b/heyscriptingguy/archive/2011/08/04/use-an-easy-powershell-command-to-search-files-for-information.aspx