Just released a small tool to "foreach" over a selection of directories running a common command. I'm sure there's a number of ways to do the same thing with shell coreutils, but my search turned-up nothing quite as concise as I wanted. But do let me know if you know of any (if there turns out to be a concise way I did not know about, I would rather use standard tools, of course!) A simple example of use is: $ cdexec * - ls -1 Which produces a list of files in all sub-directories. This is a very early release with no additional options. gem install cdexec On GitHub: http://github.com/rubyworks/cdexec