2007-06-04 04:00:22 +05:30
|
|
|
#!/bin/sh
|
|
|
|
|
2007-06-04 15:46:52 +05:30
|
|
|
# Communal variables are elusive, they don't show up in size output!
|
2007-06-04 04:00:22 +05:30
|
|
|
# This script will show all communals in *.o, sorted by size
|
|
|
|
|
|
|
|
find -name '*.o' \
|
|
|
|
| while read name; do
|
|
|
|
b=`basename "$name"`
|
|
|
|
nm "$name" | sed "s/^/$b: /"
|
|
|
|
done | grep -i ' c ' | sort -k2
|