这是自己写的脚本
date "+%M %H %d %m %w" > /selinux/.bb uu=`awk '{print $1}' /selinux/.bb` ii=`echo "$uu + 4" | bc` sed "s/$uu/$ii/" /selinux/.bb
1.eval sed ’s/$a/$b/’ filename
2.sed "s/$a/$b/" filename
3.sed ’s/’$a’/’$b’/’ filename
4.sed s/$a/$b/ filename
这是自己写的脚本
date "+%M %H %d %m %w" > /selinux/.bb uu=`awk '{print $1}' /selinux/.bb` ii=`echo "$uu + 4" | bc` sed "s/$uu/$ii/" /selinux/.bb
1.eval sed ’s/$a/$b/’ filename
2.sed "s/$a/$b/" filename
3.sed ’s/’$a’/’$b’/’ filename
4.sed s/$a/$b/ filename