Michael Murray, 21, has been jailed for three years after threatening shopkeepers with a 12-inch blade in two Consett stores.