Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #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}'
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement