Skip to content

Instantly share code, notes, and snippets.

@aeppert
Created May 29, 2019 15:25
Show Gist options
  • Save aeppert/bf103d3f082af2d96c3ac7bfff983a81 to your computer and use it in GitHub Desktop.
Save aeppert/bf103d3f082af2d96c3ac7bfff983a81 to your computer and use it in GitHub Desktop.
Kludge to add up memory when running broctl top
#!/bin/sh
broctl top | awk '{print $6}' | sed 's/M//' | tail -n +2 | paste -sd+ | bc
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment