I using sed for replace xml values. If value had "/" in it (I mean for example URL address) replace failed:
-> Extracting the value from the element:
ext_value=grep "<$2>.*<" $1 | sed -e "s/^.*<$2/<$2/" | cut -f2 -d">"| cut -f1 -d"<"
login_page oa_var="s_login_page" this is $2 parameter
sed -e "s/<$2>$ext_value</<$2>$3</g" $1 > $temp_file
$3 my desired value (also with slash)
Please advise how I can avoid this.
Thanks for all.