PowerShell -Import -CSV-如何在所有进口的十进制数字上保持领先地位
我正在尝试对现有CSV进行更改,例如保留特定的列(并删除其余的列)。但是,当我使用Import -CSV时,某些数据上的领先零将从0.123转换为.123和-0.456,转换为-.456。这正在领导该程序,该程序将消化此信息以拒绝它。
我的代码看起来像这样:
Import-CSV $attachment | Select-object 'column1', 'column2', column3' | Export-CSV $output
感谢您提供的任何帮助。谢谢。
I am trying to perform changes to a existing CSV, such as keeping specific columns (and removing the rest). However when I use Import-CSV, the leading zeros on certain data is being converted from 0.123 to .123 and -0.456 to -.456. This is leading the program that will digest this information to reject it.
My code looks something like this:
Import-CSV $attachment | Select-object 'column1', 'column2', column3' | Export-CSV $output
I appreciate any help you can provide. Thank you.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论