Powershell

使用 powershell 的 grep 过滤文本

  使用 powershell 的 grep 过滤文本 有个log文件,大小在4M左右,要求找出里面耗时超过100s 的记录。首先想到了强大的 grep ,那么就搞起。 先在网上找一下资料,这篇文章,有几种方式: 第一种: Get-content somefile.txt|findstr "someregexp" Get-content可以换成cat,P...