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