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

最新文章

  1. JavaScript中String对象的方法介绍
  2. Java文件写入,换行
  3. A ship is always safe at the shore - but that is not what it is built for.
  4. POJ1160 Post Office[序列DP]
  5. Javascript备忘复习笔记1
  6. HTTP MIME类型即HttpResponse.ContentType属性值列表
  7. 简单的新浪微博OAuth认证实现
  8. JS_CSS_logon_Mask
  9. jmeter 通过ant集成到jenkins
  10. java去重(1通过迭代器,2直接赋值)
  11. Cypher语法
  12. 基于 Consul 实现 MagicOnion(GRpc) 服务注册与发现
  13. TensorFlow迭代速度变慢的问题
  14. 安装Eclipse时遇到”java was started but returned exit code = 13“如何解决?
  15. helm 部署 使用 记录
  16. 图论之二分图-HihoCoder1121
  17. 删除docker registry镜像脚本
  18. 【LeetCode】大数相乘
  19. tomcat7.0安装笔记
  20. OSI七层模型和TCP/IP四层模型

热门文章

  1. ExpressRoute
  2. Unity. Navigation和寻路
  3. ie6 z-index(用父元素的优先级来解决)
  4. 万能js实现翻页,动态生成内容自动翻页,兼容各种浏览器(已测试)----神器版!
  5. ABBYY FineReader 12扫描界面介绍
  6. shell之eval-command
  7. shell脚本实例-游戏脚本
  8. 解决Centos6.5虚拟机上网问题
  9. hadoop(二):hdfs HA原理及安装
  10. Phonegap在ios7上系统状态栏的问题解决