mikeruss wrote:
> I have use flac2mp3 to convert all my flac files to mp3, so now I have
> an identical folder tree with the mp3's as the original flac.
>
> The script is excellent but it does not copy the folder.jpg images
> across.
>
> Can any one point me in the direction of a script which will go through
> the "flac" folders and copy the folder.jpg images to the corresponding
> mp3 folders?

something like this should do it:

        cd flac_dir

        find . -depth -name folder.jpg -print0 | \
                cpio --null -pvd mp3_dir

well, it works on my system, at least.

Note that mp3_dir can be anywhere as long as it's fully-qualified, i.e. 
starts with a leading '/'

optionally, remove change the cpio options "-pvd" to "-pd" if you don't 
want to see the files listed as they're copied.

cheers,
calum.
_______________________________________________
unix mailing list
unix@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/unix

Reply via email to