Created
April 29, 2019 16:55
-
-
Save bjornbouetsmith/21ff6bde8e663f1ad70f1cb0dc1dd1a4 to your computer and use it in GitHub Desktop.
vmdk real space taken
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
#!/bin/sh | |
echo "Total size in bytes of all vmdk" | |
stat *flat.vmdk|grep Size|cut -d ' ' -f 5|awk '{ SUM += $1} END { print SUM*512 }' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment