@darius xargs is simpler than it appears, and incredibly useful. i recommend also checking out gnu parallel