#!/bin/sh if test $Argc -ne 1 { echo "Usage: $0 " exit 1 } nm -d -n $1 | grep ' [bBdD] ' | awk '{ printf "%10ld kB %s\n", ($1-lastpos)/1024, lastname; lastpos=$1; lastname=$3 }' | sort -n