On 17/04/2006, at 9:08 AM, Charles Myers wrote:

Guys, I have searched google etc but failed to find an answer to this
(im pretty sure though I have seen somewhere that it can be done...)


I have a heap of photos (sorted by iPhoto) and it does it in multiple
directories of year, month,date etc..... I have moved the whole photo
tree over to my desktop (which runs ubuntu). I was hoping to move all
the .jpg's into a single directory if this is possible..

I have tried mv /photos/*.jpg /newphotos -r  but of course this dont
work :( Would anyone have any suggestions how to do what I wanted to do?


Thanks for any help you can provide...

find /photos -name '*.jpg' -exec mv '{}' /newphotos \;

Please test on junk data first :-) There might also be a way to do it by piping to xargs, but I'm only aware of nonstandard extensions which would let you do that.


--
SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/
Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html

Reply via email to