#!/bin/sh
find -path '*/.*' -prune -o -name '*.b' -o -name '*.bb' -print |
perl -pe 's/\n/\0/gs' | xargs -0 grep "$@"
