Extract Value between XML tags with SED

后端 未结 3 1857
礼貌的吻别
礼貌的吻别 2021-01-22 04:36

I am receiving data from a server in the following format:

gin1601DepthOfBook<         


        
3条回答
  •  甜味超标
    2021-01-22 05:38

    I would suggest using XPath, which is an XML query language. If you have the Perl XML::XPath module installed then you could simply use the following command in your shell:

    xpath -q -e '//sessionId/text()' 
    

提交回复
热议问题