Skip to content

Instantly share code, notes, and snippets.

View danielsaad's full-sized avatar

Daniel Saad Nogueira Nunes danielsaad

View GitHub Profile
@danielsaad
danielsaad / memusg
Last active September 17, 2015 13:39 — forked from netj/memusg
memusg -- Measure memory usage of processes
#!/usr/bin/env bash
# memusg -- Measure memory usage of processes
# Usage: memusg COMMAND [ARGS]...
#
# Author: Jaeho Shin <[email protected]>
# Created: 2010-08-16
set -um
# check input
[ $# -gt 0 ] || { sed -n '2,/^#$/ s/^# //p' <"$0"; exit 1; }