#!/bin/bash dirs=$(find . | grep -e "\(include\|doc\|src\)$" | grep -v obj) for i in $dirs; do find $i done