sed 帶有變量bash
eval sed 's/$a/$b/' filenameide
sed "s/$a/$b/" filenameit
sed 's/'$a'/'$b'/' filenameclass
D=$(date +%d) M=$(date +%b) Y=$(date +%Y) sed -i '/'"$D\/$M\/$Y"'/,$d' /var/ftp/pub/count.txt