Powershell - 读取 CSV 文件

Cmdlet

Get-Content cmdlet 用于读取 csv 文件的内容。

在这个例子中,我们来读取 test.csv 的内容。

Get-Content D:\temp\test\test.csv 

输出

你可以在 PowerShell 控制台中看到以下输出。

Mahesh,Suresh,Ramesh