Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我想导入一个包含两列(用户名、日期)的 CSV 文件。
我想搜索一个特定的字符串(用户)并让它返回存储在它旁边的列中的该用户的日期。
非常感谢您。
这应该这样做:
$csv = Import-Csv C:\test.csv $csv | where {$_.username -eq "Tim"} | % date