Magnetic skyrmions are topologically protected nanoscale objects, which are promising building blocks for novel magnetic and spintronic devices. Here, we investigate the dynamics of a skyrmion driven by a spin wave in a magnetic nanowire. It is found that (i) the skyrmion is first accelerated and then decelerated exponentially; (ii) it can turn L-corners with both right and left turns; and (iii) it always turns left (right) when the skyrmion number is positive (negative) in the T- and Y-junctions. Our results will be the basis of skyrmionic devices driven by a spin wave.