Skip to content

Instantly share code, notes, and snippets.

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