Skip to content

Instantly share code, notes, and snippets.

@shollingsworth
Created March 8, 2022 16:44
Show Gist options
  • Save shollingsworth/7322d7665aab9f9366b0ed43088f2369 to your computer and use it in GitHub Desktop.
Save shollingsworth/7322d7665aab9f9366b0ed43088f2369 to your computer and use it in GitHub Desktop.
list grubs menu entries source - https://askubuntu.com/a/599215
#!/usr/bin/env bash
set -euo pipefail
IFS=$'\n\t'
awk -F\' '/menuentry / {print $2}' /boot/grub/grub.cfg
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment