given a file like so:
VG Name /dev/vg03
PV Name /dev/dsk/c0d0s2
VG Name /dev/vg01
PV Name /dev/dsk/c1d0s2
VG Name /dev/vg00
PV Name /dev/dsk/c2d0s2
VG Name /dev/vg02
PV Name /dev/dsk/c3d0s2
VG Name /dev/vg07
PV Name /dev/dsk/c6d0s2
VG Name /dev/vg05
PV Name /dev/dsk/c7d0s2
VG Name /dev/vg06
PV Name /dev/dsk/c8d0s2
VG Name /dev/vg04
PV Name /dev/dsk/c9d0s2
I need to extract the PV field(s) between the VG Name field(not including
the VG Name field) as there could be more than one PV Name field per volume
group.
I am not sure of how to do this, I am assuming that grep,awk, or sed is
involved Would anyone be as so kind as to provide me with a snippet of code
that may produce the output that I want?
Any help would be greatly appreciated!!