Last active
September 30, 2019 23:47
-
-
Save 128keaton/8b7f3c52a53f499e3adc668cf1eed19f to your computer and use it in GitHub Desktop.
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/bash | |
## INCORRECT | |
$(top -bn1 | grep load | awk '{printf"%.2f%%\t\t\n", $(NF-2)}') |
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/bash | |
top -bn1 | grep load | awk '{printf"%.2f%%\t\t\n", NF-2}' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment