skip to Main Content

Retrieve substrings from individual components of an array in Bash – CentOS

For a command such as grubby --info=ALL the output received is something of the sort - index=3 kernel="/boot/vmlinuz-4.18.0-80.el8.x86_64" args="ro crashkernel=auto resume=/dev/mapper/cl-swap rd.lvm.lv=cl/root rd.lvm.lv=cl/swap rhgb quiet" root="/dev/mapper/cl-root" initrd="/boot/initramfs-4.18.0-80.el8.x86_64.img" title="CentOS Linux (4.18.0-80.el8.x86_64) 8 (Core)" id="d7fe995b9d09403896e1e56a2b02a947-4.18.0-80.el8.x86_64" index=4 kernel="/boot/vmlinuz-0-rescue-d7fe995b9d09403896e1e56a2b02a947" args="ro crashkernel=auto resume=/dev/mapper/cl-swap rd.lvm.lv=cl/root rd.lvm.lv=cl/swap…

VIEW QUESTION
Back To Top
Search