On Thu, Jan 02, 2003 at 05:52:55PM -0800, Nathan Kinkade wrote: > On Thu, Jan 02, 2003 at 08:03:37PM -0500, mike wrote: > > Hey guys. heres the skinny. I have a huge library and i want to organize it. I >want find to go through recursively, and move any "pdf" files it finds to a certain >directory. I need an example piece of script on how i would confront this. It will >save me hours if not days so thanks in advance. > > First, turn on line-wrapping in your MUA. > > find /path/to/my/libarary -name *.pdf -exec mv {} /new/dir/{} \; > > Nathan
Sorry, I wasn't thinking here....after I double check the man page I saw that -exec replaces {} with the path, not just the file name....the above will not work...use the if;do;done syntax that someone else has already posted. Thanks! Nathan To Unsubscribe: send mail to [EMAIL PROTECTED] with "unsubscribe freebsd-questions" in the body of the message