#添加时间同步
echo '*/30 * * * * /usr/sbin/ntpdate 0.nettime.pool.ntp.org && /usr/sbin/hwclock -w' > ./crontab_tmp
/usr/bin/crontab ./crontab_tmp
sleep 1
#设置cp忽略#设置centos中文乱码
sed -i "6s/^/#/" ~/.bashrc
echo "set encoding=utf-8">>~/.vimrc
echo "set termencoding=utf-8">>~/.vimrc
echo "set fileencoding=utf-8">>~/.vimrc
echo "set fileencodings=ucs-bom,utf-8,chinese,cp936">>~/.vimrc
source ~/.bashrc
echo '*/30 * * * * /usr/sbin/ntpdate 0.nettime.pool.ntp.org && /usr/sbin/hwclock -w' > ./crontab_tmp
/usr/bin/crontab ./crontab_tmp
sleep 1
#设置cp忽略#设置centos中文乱码
sed -i "6s/^/#/" ~/.bashrc
echo "set encoding=utf-8">>~/.vimrc
echo "set termencoding=utf-8">>~/.vimrc
echo "set fileencoding=utf-8">>~/.vimrc
echo "set fileencodings=ucs-bom,utf-8,chinese,cp936">>~/.vimrc
source ~/.bashrc
source ~/.vimrc
find /data/vn_glog -type f -name import.sh -exec sed -i 's/aa/bb/' {} \;