使用iconv批量改变文件编码的shell脚本
这篇文章主要介绍了编写shell脚本,使用iconv批量改变文件编码的脚本代码,需要的朋友可以参考下。用法示例:cd ~/workspace/XXXProject~/iconv_shell.sh ./ *java好了,直接上代码~~#!/bin/bashif [ "$#" != "2" ]; thenecho "Usage: `basename $0` dir filter"exitfidir=$1filter=$2echo $1for file in `...