开发者

Batch to find and replace

开发者 https://www.devze.com 2023-01-09 01:48 出处:网络
I need to replace all occurrences of a specific string with a blank space. More precisely, I need a batch file to find all \"NaN\" in a text file, and replace it with \" \" (a blank space).

I need to replace all occurrences of a specific string with a blank space. More precisely, I need a batch file to find all "NaN" in a text file, and replace it with " " (a blank space). How can I do this?

开发者_StackOverflow中文版Bests

CB


if you can download stuff, you can use GNU sed example

sed -i.bak "s/NaN/ /g" file
0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号