需求: 检查文件编码格式是否utf-8
示例:
cat check_encoding.sh
#!/bin/bash
#name: check_encoding.sh
#author: ypg
#execute: sh check_encoding.sh 目录全路径
dir=$1
log_file=/ypg/shell/work/tool/check_encoding.log
[ -e ${
log_file} ] && rm ${
log_file}
需求: 检查文件编码格式是否utf-8
示例:
cat check_encoding.sh
#!/bin/bash
#name: check_encoding.sh
#author: ypg
#execute: sh check_encoding.sh 目录全路径
dir=$1
log_file=/ypg/shell/work/tool/check_encoding.log
[ -e ${
log_file} ] && rm ${
log_file}