Created
April 6, 2023 16:30
-
-
Save ingmarioalberto/db5b4981c49e6ab5d414295ace1bed7f to your computer and use it in GitHub Desktop.
awk print column > certain value
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
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