Hi,
I have this code:
Code:
block='kernel (hd0,2)/boot/vmlinuz BOOT_IMAGE=linux root=UUID=eab515e9-bc3e-4024-9f01-55fddaa0fb1c resume=UUID=e12487ff-6d6f-44c4-9e03-33f545b3b798 splash=silent vga=788'
echo "$block" | awk '/.*UUID=/{ x=gensub(/.*UUID=([-0-9a-fA-F]+)[ )].*/,"\\1",1); print x}'
I need to return the 1st uuid not the second as it did. Where I have a mistake?
Thanks