[英]Powershell to remove text in CSV file?
So I have a program that prints out some text, in column 1 and down:所以我有一个程序可以打印出一些文本,在第 1 列及以下:
Is it possible to make a powershell script that deletes all the text besides the numbers 100995 1557
?是否可以制作一个 powershell 脚本来删除除数字
100995 1557
之外的所有文本? the place where those numbers are, are the only ones I need and want in my Excel file.这些数字所在的地方,是我在 Excel 文件中唯一需要和想要的。
Something like this (untested):像这样的东西(未经测试):
import-csv myfile.csv | Select Value| export-csv newfile.csv
(This is just Angsar Wiecher's comment, expressed in PS) (这只是Angsar Wiecher的评论,在PS中表达)
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.