Skip to content

Instantly share code, notes, and snippets.

@jhazelwo-charter
Created June 2, 2017 02:02
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jhazelwo-charter/bfc45269308809c983fbbcc057206786 to your computer and use it in GitHub Desktop.
Save jhazelwo-charter/bfc45269308809c983fbbcc057206786 to your computer and use it in GitHub Desktop.
#!/bin/sh
# idle cpu as dots
vmstat -n 1 | while read line; do
length=`echo $line|awk '{print $15}'|egrep "^[0-9]+$"`
test -n "$length" && {
echo -n $length
for e in `seq 1 $length `; do echo -n .; done;
echo '';
} || true
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment