US music legend Bob Dylan, whose poetic lyrics have influenced generations of fans, won the Nobel Literature Prize, the first songwriter to win the award in a decision that stunned prize watchers.