Created
April 29, 2023 08:44
-
-
Save drscream/35d4626eceea6d055bd1cd14a452bcf9 to your computer and use it in GitHub Desktop.
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
#!/usr/bin/env bash | |
vmadm list -o uuid,alias -Hp | while read line; do | |
arr=(${line//:/ }) | |
size=$(zfs list -H -o used zones/${arr[0]}) | |
echo -e "${size}\t${arr[1]}" | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment