perc=$(df -h |grep /dev/xvda1| awk {'print $5'}); echo ${perc::-1}
Created
November 17, 2015 19:34
-
-
Save todgru/e6c1cc036fc86172b64e to your computer and use it in GitHub Desktop.
Ubuntu disk use integer
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment