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.

you don't say if you need to preserve any of the path information when you move the file. The other poster's suggestion might work: my take on it would be to use a for loop:

for i in `find /some/dir -name "*.pdf"`;
do mv $i /some/other/dir;
Paul Beard: seeking UNIX/internet engineering work
8040 27th Ave NE Seattle WA 98115 / 206 529 8400

There's no real need to do housework -- after four years it
doesn't get
any worse.

To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-questions" in the body of the message

Reply via email to