Hi All,
I am trying to extract certain lines from file.cfg. file.cfg has uniform entries such as:
Name of Service A
Condition=Start
Min=1, MAX=10
Name of Service B
Condition=Manual
Min=3, Max=5
Name of Service C
Condition=Start
Min=0, Max=2
There are numerous entries like this. I am trying to create a script that will display the three lines of only the entries that have "Condition=Start". My trouble is to pull the lines that appear before and after the line "Condition=Start".
The goal is to quickly see what service entries in file.cfg are set to start without viewing file.cfg.
Thanks in advance.
Robert
I am trying to extract certain lines from file.cfg. file.cfg has uniform entries such as:
Name of Service A
Condition=Start
Min=1, MAX=10
Name of Service B
Condition=Manual
Min=3, Max=5
Name of Service C
Condition=Start
Min=0, Max=2
There are numerous entries like this. I am trying to create a script that will display the three lines of only the entries that have "Condition=Start". My trouble is to pull the lines that appear before and after the line "Condition=Start".
The goal is to quickly see what service entries in file.cfg are set to start without viewing file.cfg.
Thanks in advance.
Robert