You can couple find with the -exec argument. example: find . -maxdepth 1 -exec grep foo {} \;