notes/Find all Bootable Partitions-NRJsDKnB.sh
#displays partition info with * in second colonum for boot partition

sudo fdisk -l 

#Just greping for * does not work
sudo fdisk -l |grep '*' #quotes need around *


#use awk to find match in second colum

sudo fdisk -l | awk '$2 == "*" 

#display just the partition match
sudo fdisk -l | awk '$2 == "*" {print $1}'

syntax highlighted by Code2HTML, v. 0.9.1