On Sun, 4 Nov 2007, Randy Dunlap wrote:trust me, it's not a script i'm particularly proud of: =========================== #!/bin/sh DIR=${1-*} # by default, all directories for cf in $(find ${DIR} -name *.c) ; do echo ${cf} grep "#include" $cf | sort | uniq -c | grep -v 1 done | grep -B1 "#include" | grep -v -- "--" =========================== on the bright side, it took about 90 seconds to write, but i won't be winning any awards for style. i'll add it to the web page. rday -- ======================================================================== Robert P. J. Day Linux Consulting, Training and Annoying Kernel Pedantry Waterloo, Ontario, CANADA http://crashcourse.ca ======================================================================== -
| Linus Torvalds | Linux 2.6.27-rc5 |
| Greg KH | Re: Dual-Licensing Linux Kernel with GPL V2 and GPL V3 |
| Greg Kroah-Hartman | [PATCH 004/196] Chinese: add translation of SubmittingPatches |
| Trent Piepho | Re: [PATCH] [POWERPC] Improve (in|out)_beXX() asm code |
git: | |
| Christoph Hellwig | Re: [PATCH 06/32] IGET: Mark iget() and read_inode() as being obsolete [try #2] |
| Gerrit Renker | [PATCH 0/37] dccp: Feature negotiation - last call for comments |
| David Miller | Re: [PATCH] pkt_sched: Destroy gen estimators under rtnl_lock(). |
| David Miller | [GIT]: Networking |
