Welcome to Apple Support Communities
You can transfer to the new iTunes library all the content purchased from the iTunes Store, so connect the iPod to your Mac and iTunes will open. You should be prompted to authorize your Mac and transfer purchases from the device. If not, go to File menu (on the menu bar) > Devices > Transfer purchases.
If you have got music which wasn't purchased in the iTunes Store, you need an application like Senuti to transfer them to your iTunes library