UN*X Note

just some geek's notes. Placed here in case, I forgot or someone else didn't know...

Parse GRUBs Menu.lst without rebooting

...and without bricking your machine in case something went wrong

grep menuentry /boot/grub/grub.cfg | cut -b 1-11 --complement \
| cut -d "'" -f1 | cut -d "\"" -f 1 | nl --starting-line-number=0

should print you a numbered list of all entries, grub will try to boot in the right order. If it doesn't, you'd better have a USB stick with a bootable rescue image at hand...