hush/scripts/find_stray_communal_vars
Denis Vlasenko 4e5f82c76f find_stray_communal_vars: script which finds communal variables
resize: remove globals var
mdev: remove globals var
2007-06-03 22:30:22 +00:00

11 lines
270 B
Bash
Executable File

#!/bin/sh
# Communal variables are elusize, then don't show in size output!
# 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