#!/bin/rc cat p_*.c | awk '/^Pkg / { print "extern Pkg "$2";" }' | sort cat p_*.c | awk '/^Pkg / { print " &"$2"," }' | sort