Separates documents into groups according to a "group key" and output one document for each unique group key.

See usage.