如何删除所有出现的```将字符串转换为大文件中的int

问题描述 投票:0回答:1

我有一个超过100k行的文件,它在每行中包含"122345",形式的数据,但我需要整数而不是字符串,最好的方法是什么

string replace replaceall
1个回答
0
投票

使用powershell:

get-content <file path>|foreach-object{$_-replace'"',''}|set-content <file_destination> 
© www.soinside.com 2019 - 2024. All rights reserved.