BillPlan = "UBM-A/A"のときにObjDeviceの値を抽出するXML応答があります。あなたはXMLStarletを使用して同じXML応答から変数の値を抽出するためのシェルスクリプト
<Txn>
<TxnName>Spectrum-AlertSite-Component_spectrum.engprod_InstantUpgradeEdge_GetProductOffersByAccount_getProductOffersByAccountValid</TxnName>
<TxnDetail Monitor="y" Notify="y" PingError="n"
TraceError="y" Interval="5" TimeOut="300"
ObjDevice="318373" BillPlan="UBM - A/A" MaxSteps="50"
/>
</Txn>
<Txn>
<TxnName>Spectrum-AlertSite-Component_spectrum.engprod_InstantUpgradeEdge_GetProductOffersByAccount_getProductOffersByAccountValid</TxnName>
<TxnDetail Monitor="y" Notify="y" PingError="n"
TraceError="y" Interval="5" TimeOut="300"
ObjDevice="318377" BillPlan="UBM - A/A" MaxSteps="50"
/>
他の「どのようにシェルのXML文書から値を抽出するのですか」の質問はありますか? –