# Search for `foo` within files up to the specified directory depth find . -maxdepth 1 -exec grep foo {} \;