Never been to CodeSnippets before?

Snippets is a public source code repository. Easily build up your personal collection of code snippets, categorize them with tags / keywords, and share them with the world (or not, you can keep them private!)

Copying JUST mp3 files, flattening directory structure (See related posts)

// This is a simple find command that copies only mp3 files
// from an iTunes directory; it only copies the files into
// a directory called "mp3_flat"

find /[[yourpath]]/iTunes\ Music -iname "*.mp3" -exec cp {} /[[yourbackuppath]]/mp3_flat/ \;

You need to create an account or log in to post comments to this site.