Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save ingmarioalberto/db5b4981c49e6ab5d414295ace1bed7f to your computer and use it in GitHub Desktop.
Save ingmarioalberto/db5b4981c49e6ab5d414295ace1bed7f to your computer and use it in GitHub Desktop.
awk print column > certain value
PP=20; df -PH /var/log | tail -n1 | awk "\$5 > $PP {print ;}" | grep -e '^.*' 1>/dev/null 2>/dev/null && echo OVER || echo UNDER
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment