从 CSV 中删除非 ASCII 字符 [英] Remove non-ASCII characters from CSV
本文介绍了从 CSV 中删除非 ASCII 字符的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我想删除文件中的所有非 ASCII 字符.
I want to remove all the non-ASCII characters from a file in place.
我用 tr 找到了一个解决方案,但我想我需要在修改后写回那个文件.
I found one solution with tr, but I guess I need to write back that file after modification.
我需要在性能相对较好的地方进行.
I need to do it in place with relatively good performance.
有什么建议吗?
推荐答案
# -i (inplace)
sed -i 's/[d128-d255]//g' FILENAME
这篇关于从 CSV 中删除非 ASCII 字符的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文