Ooops, need a one liner!

Ryan Rix phrkonaleash at gmail.com
Fri Jul 3 22:04:59 MST 2009


On Fri 3 July 2009 4:14:52 pm Joseph Sinclair wrote:
> 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...

Sweet! I tried something similar (in one find, which failed hardcore) but that 
worked! Thanks!


More information about the PLUG-discuss mailing list