I am trying to delete a line from xml file by comparing resource name tab value from same xml file, the below bash script works if I put logfilename as Mansing but gets failed when I keep the value as 'jdbc/test'. Any help?
bash code:
logfilename="jdbc/test"
sed -i "/\<$logfilename\>/d" /home/test/test.xml
test.xml
file is as below:
<a>
<Resource name="jdbc/test" auth="container" url="localhost:8080"
<Resource name="Mansing" auth="container" url="localhost:8080"
</a>