#!/bin/bash for dir in "$@" do find "$dir" -maxdepth 1 -iname "*.[hc]" -type f done