#!/bin/bash
########################
#遍历出配置的文本 #
########################
#cat app.properties | while read line
#do
#echo $line
#done
######################
# 修改 #
######################
sed -e 's/mpush.redis.host=172.18.1.20/mpush.redis.host=niahishjie/' app.properties
#sed -i -e 's|mpush.redis.port=6379|mpush.redis.port=141444|' app.properties
#sed -i -e 's|mpush.redis.timeout=1000|mpush.redis.timeout=9999|' app.properties
#sed -i -e 's|mpush.redis.password=vdyooadminpass|mpush.redis.password=nihaoshijie|' app.properties
########################
# 删除 #
########################
sed -i '/app.jdbc.url.driver=mysql/d' app.properties >newfile.properties
######################
# 添加 #
######################
echo "这是我添加的内容" > app.proerties
echo "你好世界" >> app.properties
> hah.cfgmysql