PowerShell FINDSTR eqivalent?

后端 未结 8 935
栀梦
栀梦 2021-02-02 09:28

What\'s the DOS FINDSTR equivalent for PowerShell? I need to search a bunch of log files for \"ERROR\".

8条回答
  •  伪装坚强ぢ
    2021-02-02 09:43

    Here's the quick answer

    Get-ChildItem -Recurse -Include *.log | select-string ERROR 
    

    I found it here which has a great indepth answer!

提交回复
热议问题