【发布时间】:2017-01-06 10:25:20
【问题描述】:
有没有办法逐行搜索 .CSV 文件以查找特定值,而无需指定要搜索的列名,希望在多个 .CSV 文件上运行此脚本,因此指定列名不是我的选择。
示例 PowerShell 代码:
foreach ($row in $csvFile){
if ($row -eq/-contains $StringIWantToFind) {
#do something with the string here
}
}
【问题讨论】:
标签: powershell csv