powershell - 将标题添加到已有数据的 .csv 列

标签 powershell

我有一个 .csv 文件,其中有一列中有数据,我需要该列有标题。我不知道如何获取列中的标题。

最佳答案

这应该有效:

import-csv test.csv -Header "Name" | export-csv test.csv -NoTypeInformation

关于powershell - 将标题添加到已有数据的 .csv 列,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/7244959/

相关文章:

powershell - 使用Powershell更新MOSS文档库项目的元数据

powershell - TypeTexting到Word文档时内容被截断

powershell - 如何使用 $_ 自动变量调用 powershell 脚本 block

powershell - 授予 MSysObjects 的读取权限

regex - 正则表达式,删除最后一个正斜杠后的所有内容

powershell - 使用 powershell 向现有 CSV 文件添加 header

Powershell 测试网络连接 "Name resolution of [domain] failed"错误

performance - 通过 Powershell 查找给定文件的完整路径的最快方法?

powershell - 从调用命令重定向错误

docker - (如何)我可以在 docker 容器中运行 Windows Defender 吗?获取错误