Complex sentence: Initially escort carriers accompanied merchant ships and fended off attacks from aircraft and submarines; later in the war, escort carriers were part of hunter-killer groups which sought out submarines instead of being attached to a particular convoy.
Split into simpler sentences: Initially escort carriers accompanied the merchant ships and fended off attacks from aircraft and submarines. Later in the war, escort carriers were part of hunter-killer groups which sought out submarines instead of being attached to a particular convoy.