These are easy to follow instructions, adapt them for your needs 😉.
- (IMPORTANT) Create a directory
~/iPod
- (IMPORTANT) Mount your iPod in
/ipod
- Place all of your songs/podcasts into
~/iPod/music
- Each (first level) directory/folder is one playlist
- Run this script
WARNING: if you are in a case sensitive filesystem (very likely if you are using linux) the case of the directories matter.