While there isn't a more specific term like "flock" for birds or "herd" for cattle, the word "battalion" itself is used to refer to a group of soldiers, typically consisting of several companies.
For example, you could say "The battalion marched across the field."