I found a more concise way to list the bootable menu lines:
Code:
grep -e "menuentry " -e "submenu" /boot/grub/grub.cfg | sed 's/^[ \t]*//' | cut -d "'" -f2,2 | nl --starting-line-number=0
Code:
cavsfan@Jammy-Jellyfish:~$ grep -e "menuentry " -e "submenu" /boot/grub/grub.cfg | sed 's/^[ \t]*//' | cut -d "'" -f2,2 | nl --starting-line-number=0
0 Arch Linux
1 Arch Linux (fallback kernel)
2 Fedora 35 (Thirty Five)
3 Xubuntu 22.04 Jammy Jellyfish LTS
4 Xubuntu 22.04 Jammy Jellyfish LTS (recovery mode)
5 Windows 10
Just the menu line numbers and what the systems names have been set to.
Bookmarks