Ooops, need a one liner!

Joseph Sinclair plug-discussion at stcaz.net
Fri Jul 3 16:14:52 MST 2009


mkdir ~/ogg-music
cd ~/music
find * -type d -exec mkdir -p ../music-ogg/'{}' \;
find * -name '*.ogg' -exec mv '{}' ../music-ogg/'{}' \;


Be sure to preserve the quoting above or it may not work...

Ryan Rix wrote:
> Hey guys,
> 
> I recently recovered about 20gb of ogg music off of my old laptop (or rather, 
> a backup of it existing on my dad's computer) and decided to merge it with my 
> current collection, which is about 90% mp3. I didn't think before I merged 
> them, but I ended up creating about 20 albums where the tracks exist in both 
> OGG and MP3. Also, it appears that MANY of the tags on the ogg music are 
> absolutely cooked (or amarok's database is)
> 
> So, does anyone know a way that I can take bash and tell it to:
> 
> Find all the ogg files in ~/music, move them, while creating the same 
> directory structure, under ~/ogg-music ?
> 
> I'd use amarok's organize files utility, but it dies horridly on this many 
> files.
> 
> (I'll be out all day, and perhaps all weekend, so pardon me if I don't 
> immediately reply.)
> 
> Ryan
> ---------------------------------------------------
> PLUG-discuss mailing list - PLUG-discuss at lists.plug.phoenix.az.us
> To subscribe, unsubscribe, or to change your mail settings:
> http://lists.PLUG.phoenix.az.us/mailman/listinfo/plug-discuss
> 

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 197 bytes
Desc: OpenPGP digital signature
Url : http://lists.PLUG.phoenix.az.us/pipermail/plug-discuss/attachments/20090703/8a213cf2/attachment.pgp 


More information about the PLUG-discuss mailing list