Troop of moving stars through a straight line
That was likely the latest StarLink satellite constellation.

Note that usually it is important to give an exact time and place to answer questions like this, but in this case the answer looks fairly obvious. It really does look odd to see the constellation fly overhead (later it will disperse into separate orbits and not be very conspicuous).