Skip to Main Content

Infrastructure Software

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Getting exact value from XML file using shell script

zajcevSep 3 2014 — edited Oct 27 2014

Hello,

I have XML file which contains important value, that I want to get to some output or echo.

XML is like this:

<!-- ############################################################################################################################### -->

  <bean id="prihlasAifoTrigger" class="org.springframework.scheduling.quartz.SimpleTriggerFactoryBean">

  <property name="jobDetail" ref="prihlasAifoJobDetail" />

  <property name="startDelay" value="0" />

  <property name="repeatInterval" value="1000" />

  </bean>

<!-- ############################################################################################################################### -->

  <bean id="odhlasAifoTrigger" class="org.springframework.scheduling.quartz.SimpleTriggerFactoryBean">

  <property name="jobDetail" ref="odhlasAifoJobDetail" />

  <property name="startDelay" value="0" />

  <property name="repeatInterval" value="60000" />

  </bean>

I want to get the bold value from this XML.

Any ideas? I'm not so familiar with sed or awk.

Thank you

Honza

Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Nov 24 2014
Added on Sep 3 2014
8 comments
5,923 views