xargs will break up long lists so that you fit inside the limits for the length of a command line.

Cheers,
Ben