How can i replace values of keys in one like , example :
<inline-jdbc isolation-level="ReadCommitted" jdbc-driver="com.mysql.jdbc.Driver"
jdbc-password="xxxxxx" jdbc-uri="jdbc:mysql://xxxxx"
jdbc-username="xxxxx"
time-between-eviction-runs-millis="600000" />
as you can see jdbc-password and jdbc-uri are in same line if i run the following command :
s/\(jdbc-uri *= *\).*/\1"jdbc:mysql:\/\/xxxx"/g
s/\(jdbc-password *= *\).*/\1"xxxx"/g
s/\(jdbc-username *= *\).*/\1"xxxx"/g
this command replace jdb-password and jdbc-username and remove jdbc-uri !!