标签:powershell select-string 遍历文件
cd D:\2016-06-13 #进入所要遍历额文件目录 Select-String ` "Files Excluded","Files Scanned","Directories Scanned", ` "Directories Excluded","Files Skipped","Files Scan Error", ` "Files Infected","Total Bytes" ` #所要帅选的关键词,我这里帅选了多个用逗号隔开 -Encoding oem` #指定编码格式,如果不指定可能会造成中文乱码 *.log ` #我这里是遍历所有的.log后缀的文件 | Out-File qq.csv #输出到当前目录下qq.csv文件
本文出自 “汜水流年_” 博客,请务必保留此出处http://timefiles.blog.51cto.com/8475652/1789432
标签:powershell select-string 遍历文件
原文地址:http://timefiles.blog.51cto.com/8475652/1789432