use sed to implement change some text from the specify file, like as
#! /bin/Bash setting_file=/cydrive/c/dev/maven/setting.xml.txt pattern="<db.user>*<\/db.user>" target="<db.user>_35<\/db.user>" sed -n -i -e 1,6s/$pattern/$target "$setting_file"
modify the properties file by the such way:
tmp_file=/tmp/tmpfile.$$ schema=$1 user="owner_"$schema password="owner_"$schema"_XXXXX" cp local.properties $tmp_file sed -i -e s/app.local.usr=.*/app.local.usr=$user/ "$tmp_file" sed -i -e s/app.local.password=.*/app.local.password=$password/ "$tmp_file" mv $tmp_file local.properties