3 grep -n -B1 -r $'^\t*}$' . | grep -A1 '.[ch]-[0-9]*-$'
4 grep -n -A1 -r $'^\t*{$' . | grep -B1 '.[ch]-[0-9]*-$'
5 # or (less surefire ones):
6 grep -n -B1 -r $'^\t*}' . | grep -A1 '.[ch]-[0-9]*-$'
7 grep -n -A1 -r $'^\t*{' . | grep -B1 '.[ch]-[0-9]*-$'
9 # find trailing empty lines
10 find -type f | while read file; do
11 test x"$file" = x"" && continue
12 tail -n1 $file | while read lastline
14 #echo "|$file|$lastline"
15 if test x"$lastline" = x""; then