Created
March 30, 2015 23:11
-
-
Save xarses/de6603e8b0009a250d73 to your computer and use it in GitHub Desktop.
print-partations
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
for dev in $devs ; | |
do | |
echo "device: ${dev}" | |
parts=$(ls /dev/${dev}?*) | |
for part in $parts ; | |
do | |
partnum=$(echo ${part} | awk -F"/dev/${dev}" '{print $2}') | |
echo "Part: ${part}" | |
sgdisk -i ${partnum} /dev/${dev} | grep "Partition GUID code" | |
echo "" | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment