[Chester LUG] Help with a bash script
Stuart Burns
stuart.james.burns at gmail.com
Mon Oct 18 16:45:04 UTC 2010
Hi everyone,
I am hoping someone can help me a bit here. I am creating a cript that
deals with volume groups. However my bash skills fall short.
I have a file that looks like this
Vg955-01 /dev/diska1
Vg955-01 /dev/diska2
Vg978-01 /dev/disk45
Vg978-04 /dev/disk13
You get the picture.
Now what I am trying to do is get all the vg parts followed by the
constituent disks. Ie above should look like:
Vg955-01 /dev/disk1a /dev/diska2
Vg978-01 /dev/disk45
Vg978-04 /dev/disk13
I cant really think of an easy way to do it without resorting to perl.
Can anyone help?
Regards
Stu
More information about the Chester
mailing list