blob: 95563d1a3dc3d025512a491604ec9a77c153ef8c [file] [log] [blame]
Denis Vlasenko4e5f82c2007-06-03 22:30:22 +00001#!/bin/sh
2
Denis Vlasenko74324c82007-06-04 10:16:52 +00003# Communal variables are elusive, they don't show up in size output!
Denis Vlasenko4e5f82c2007-06-03 22:30:22 +00004# This script will show all communals in *.o, sorted by size
5
6find -name '*.o' \
7| while read name; do
8 b=`basename "$name"`
9 nm "$name" | sed "s/^/$b: /"
10done | grep -i ' c ' | sort -k2