Hello all;
I have a problem with a script in AWK, I need find two ocurrences in a piece of exit of a command. When I run the command "vxprint -Aht" the exit of the command is similar to this:
v ofiu03-L02
pl ofiu03-P03
sd d64t0-02
pl ofiu03-P04
sd d64t1-02
v ofiu03-L03
pl ofiu03-P05
sd d65t0-02
pl ofiu03-P06
sd d65t1-02
v ofiu04
pl ofiu04-04
sv ofiu04-S03
sv ofiu04-S04
v ofiu04-L03
pl ofiu04-P05
sd d66t0-02
pl ofiu04-P06
sd d66d1-02
The first that I need is separate each of the volume (a volume start with the letter "v" in the first field and end with white line) once separate each of this volumen, I need know which of this have two or more lines with "pl" in the first field. For each of this volume that have two or more "pl" I need that the script show me which volume name is (but this is not important).
Can anybody help me please, I have a very big problem in my job for this.
Thanks in advance for your time
Regards
Currando
I have a problem with a script in AWK, I need find two ocurrences in a piece of exit of a command. When I run the command "vxprint -Aht" the exit of the command is similar to this:
v ofiu03-L02
pl ofiu03-P03
sd d64t0-02
pl ofiu03-P04
sd d64t1-02
v ofiu03-L03
pl ofiu03-P05
sd d65t0-02
pl ofiu03-P06
sd d65t1-02
v ofiu04
pl ofiu04-04
sv ofiu04-S03
sv ofiu04-S04
v ofiu04-L03
pl ofiu04-P05
sd d66t0-02
pl ofiu04-P06
sd d66d1-02
The first that I need is separate each of the volume (a volume start with the letter "v" in the first field and end with white line) once separate each of this volumen, I need know which of this have two or more lines with "pl" in the first field. For each of this volume that have two or more "pl" I need that the script show me which volume name is (but this is not important).
Can anybody help me please, I have a very big problem in my job for this.
Thanks in advance for your time
Regards
Currando