Complex sentence: His last appearance was on "The Andy Griffith Show", in which he played a Marine commander completing an inspection.
Split into simpler sentences: His last appearance was on the Andy Griffith Show. He was a Marine commander completing an inspection.