[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Include Collector (may be OT)



On Jul 26, Bolan Meek wrote:
> In beginning maintenance & improvement (a.k.a adoption)
> of the xmailtool source, I've wanted to collect all the
> '#include <whatever.h>' statements that are common to
> several of the source files with a Perl script, as opposed
> to a error-vulnerable method of doing it by hand.

This should work (untested):

cat `find . -name '*.[ch]'` | egrep '^\s+#include <' | sort | uniq -d


Chris



Reply to: