From owner-freebsd-questions Thu Jan 2 17:45:13 2003 Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id E902A37B401 for ; Thu, 2 Jan 2003 17:45:11 -0800 (PST) Received: from truman.datasphereweb.com (12-231-81-122.client.attbi.com [12.231.81.122]) by mx1.FreeBSD.org (Postfix) with SMTP id EC94D43EC2 for ; Thu, 2 Jan 2003 17:45:10 -0800 (PST) (envelope-from ryallsd@datasphereweb.com) Received: (qmail 25605 invoked from network); 3 Jan 2003 01:45:10 -0000 Received: from 12-229-238-38.client.attbi.com (HELO bartxp) (12.229.238.38) by 12-231-81-122.client.attbi.com with SMTP; 3 Jan 2003 01:45:10 -0000 From: "Derrick Ryalls" To: Subject: RE: Shell guru needed. Date: Thu, 2 Jan 2003 17:47:04 -0800 Message-ID: <003101c2b2ca$073d7000$0200a8c0@bartxp> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook, Build 10.0.4024 In-Reply-To: <200301030103.h0313b67012698@labs.unixhideout.com> X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1106 Importance: Normal Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG > -----Original Message----- > From: owner-freebsd-questions@FreeBSD.ORG=20 > [mailto:owner-freebsd-questions@FreeBSD.ORG] On Behalf Of mike > Sent: Thursday, January 02, 2003 5:04 PM > To: freebsd-questions@freebsd.org > Subject: Shell guru needed. >=20 >=20 > Hey guys. heres the skinny. I have a huge library and i want=20 > to organize it. I want find to go through recursively, and=20 > move any "pdf" files it finds to a certain directory. I need=20 > an example piece of script on how i would confront this. It=20 > will save me hours if not days so thanks in advance. okay, I am no expert, but here is a shot: %find /path/to/search -name '*.pdf' -exec mv /destination/directory I am a bit uncertain if the last part is correct, but this is close to what you want, I think. >=20 > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-questions" in the body of the message >=20 To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message