Plan 9 from Bell Labs’s /usr/web/sources/contrib/rsc/scripts/g
#!/bin/rc flags=() while(! ~ $#* 1 && ~ $1 -*) {flags=($flags $1); shift} if(~ $#* 1) {grep -n $flags -- $1 *.[Cbchm] /dev/null} if not grep -n $flags $* /dev/null