#!/bin/sh # look through all files for either @file or \file, grep -c will report # ./example.file:0 if it is not found. find arch lib common include -iname '*.[ch]' -not -path */gen/* -exec \ grep -c '[@\]file' {} \+ \ | awk -F':' '$2 == 0 {print "Undocumented file:", $1}'