1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Configuration file query

Discussion in 'Shell Script' started by cshanek, Aug 28, 2010.

  1. cshanek

    cshanek New Member

    Joined:
    Aug 28, 2010
    Messages:
    1
    Likes Received:
    0
    Trophy Points:
    0
    I have a configuration file (listen.conf) with the following format:
    [jupiter]
    event_class="jupiter_bypass"
    event_state="active"

    [hammer]
    event_class="halt_snmp"
    event_state="active"

    [thor]
    even_class="meh"
    event_state=inactive


    ...
    What would be the best way to return event_class names of all inactive and/or active events (event_state's)?

    Thanks in advance,
    Shane
     

Share This Page