Linux下文件utf-8 bom转换为utf-8编码

*.txt 模糊查询可以改成自己想要的

find . -type f -name '*.txt' -print | xargs -i sed -i '1 s/^\xef\xbb\xbf//' {}

posted on 2021-11-16 09:06  红薯啦里去挖  阅读(564)  评论(0)    收藏  举报

导航