Skip to main content
the * in the regex was unnecessary
Source Link

You can do this with fdisk and awk

fdisk -l | awk '/Disklabel/*/type:/ {print $3}' 
fdisk -l | awk '/Disklabel type:/ {print $3}' 

You can do this with fdisk and awk

fdisk -l | awk '/Disklabel/*/type:/ {print $3}' 

You can do this with fdisk and awk

fdisk -l | awk '/Disklabel type:/ {print $3}' 
Source Link

You can do this with fdisk and awk

fdisk -l | awk '/Disklabel/*/type:/ {print $3}'