Skip to main content
added 4 characters in body
Source Link
Siva
  • 9.3k
  • 9
  • 60
  • 88

using below sed command, we can update the specific tag value:-

sed -i '/com.sun.faces.numberOfViewsInSession</param-name>/{n;s/3</param-value>/25</param-value>/}' test.xml

sed -i '/<param-name>com.sun.faces.numberOfViewsInSession<\/param-name>/{n;s/<param-value>3<\/param-value>/<param-value>25<\/param-value>/}' test.xml

using below sed command, we can update the specific tag value:-

sed -i '/com.sun.faces.numberOfViewsInSession</param-name>/{n;s/3</param-value>/25</param-value>/}' test.xml

using below sed command, we can update the specific tag value:-

sed -i '/<param-name>com.sun.faces.numberOfViewsInSession<\/param-name>/{n;s/<param-value>3<\/param-value>/<param-value>25<\/param-value>/}' test.xml
Source Link

using below sed command, we can update the specific tag value:-

sed -i '/com.sun.faces.numberOfViewsInSession</param-name>/{n;s/3</param-value>/25</param-value>/}' test.xml