Skip to content

Instantly share code, notes, and snippets.

@128keaton

128keaton/et-write.sh

Last active Sep 30, 2019
Embed
What would you like to do?
#!/bin/bash
## INCORRECT
$(top -bn1 | grep load | awk '{printf"%.2f%%\t\t\n", $(NF-2)}')
#!/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
You can’t perform that action at this time.