Shaw went on to serve in the battles of Weldon Railroad, Peeble's Farm and Hatcher's Run. He was appointed acting Brigade Surgeon December 1, 1864, after Dr Townsend, the previous chief was mustered out with his regiment the 44th New York. Shaw resigned February 22, 1865, after developing malaria.