Syntax: foreachfile [-e] [-d depth] filename command Execute the specified command in every first-level subdirectory containing the file filename. The -e option cause foreachfile to skip directories containing the file "error". The -d option specifies to go down to lower level subdirectories as well (the default is 1).