iconv 批量修改文件编码
2024-09-10 09:31:53
iconv_shell.sh
#!/bin/bash if ["$#" != ""];then
echo "Usage: `basename $0` dir filter"
exit
fi dir=$
filter=$
echo $
for file in `find $dir -name "$2"`;do
echo "$file"
iconv -f gb18030 -t utf8 -o $file $file
done
use:
./iconv_shell.sh file_path *.html
最新文章
- JavaScript中String对象的方法介绍
- Java文件写入,换行
- A ship is always safe at the shore - but that is not what it is built for.
- POJ1160 Post Office[序列DP]
- Javascript备忘复习笔记1
- HTTP MIME类型即HttpResponse.ContentType属性值列表
- 简单的新浪微博OAuth认证实现
- JS_CSS_logon_Mask
- jmeter 通过ant集成到jenkins
- java去重(1通过迭代器,2直接赋值)
- Cypher语法
- 基于 Consul 实现 MagicOnion(GRpc) 服务注册与发现
- TensorFlow迭代速度变慢的问题
- 安装Eclipse时遇到”java was started but returned exit code = 13“如何解决?
- helm 部署 使用 记录
- 图论之二分图-HihoCoder1121
- 删除docker registry镜像脚本
- 【LeetCode】大数相乘
- tomcat7.0安装笔记
- OSI七层模型和TCP/IP四层模型