s/communal/common/ part 2

This commit is contained in:
Denis Vlasenko
2007-08-21 10:54:59 +00:00
parent f7d9e84bc5
commit 18f2a6bc5e

10
scripts/find_stray_common_vars Executable file
View File

@@ -0,0 +1,10 @@
#!/bin/sh
# Common variables are elusive, they don't show up in size output!
# This script will show all commons 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