they looked wretched now , lining up in silence , and yet when fife and drum began to play , each regiment in its turn followed the flying colors , heads high in their tattered uniforms-or whatever clothing they could find .