#! /usr/bin/env bash cd "$1" && find . | while read i do if [ -f "/usr/include/$i" ] then rm -v "$i" else echo "SKIP: $i" fi done