Hello,
I want to select a line from a paragraph , here is an example :
---BEGIN---
...
...
...
Instance Name: instance-1
Id...........: 85619156-734b-45d0-b40e-e15014902862
Job Name.....: job-1
Submitted....: 8/30/07 4:22 PM
Last Modified: 8/30/07 4:40 PM
State........: COMPLETED
Instance Name: instance-10
Id...........: a8e74565-d1d6-494d-977f-f68a0467ba41
Job Name.....: job-1
Submitted....: 8/30/07 6:56 PM
Last Modified: 8/30/07 7:02 PM
State........: PAUSED/NORMAL
...
...
...
---END---
I want to select the line "Job Name" from the paragraph containing the word "PAUSED/NORMAL"
In my case, I should get the world "job-1",
I don't know how to write a script doing such think.
Any help is welcome.
Regards.
I want to select a line from a paragraph , here is an example :
---BEGIN---
...
...
...
Instance Name: instance-1
Id...........: 85619156-734b-45d0-b40e-e15014902862
Job Name.....: job-1
Submitted....: 8/30/07 4:22 PM
Last Modified: 8/30/07 4:40 PM
State........: COMPLETED
Instance Name: instance-10
Id...........: a8e74565-d1d6-494d-977f-f68a0467ba41
Job Name.....: job-1
Submitted....: 8/30/07 6:56 PM
Last Modified: 8/30/07 7:02 PM
State........: PAUSED/NORMAL
...
...
...
---END---
I want to select the line "Job Name" from the paragraph containing the word "PAUSED/NORMAL"
In my case, I should get the world "job-1",
I don't know how to write a script doing such think.
Any help is welcome.
Regards.