Complex sentence: Companies A, B, C and D were mustered out in New York city June 24,1864; those not entitled to be discharged having previously been transferred to other companies within the regiment.
Split into simpler sentences: Companies A, B, C and D were mustered out in New York city June 24,1864. Enlistees who were not entitled to be discharged were transferred to other companies within the regiment.