Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 2 Jan 2003 17:47:04 -0800
From:      "Derrick Ryalls" <ryallsd@datasphereweb.com>
To:        <freebsd-questions@freebsd.org>
Subject:   RE: Shell guru needed.
Message-ID:  <003101c2b2ca$073d7000$0200a8c0@bartxp>
In-Reply-To: <200301030103.h0313b67012698@labs.unixhideout.com>

next in thread | previous in thread | raw e-mail | index | archive | help


> -----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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?003101c2b2ca$073d7000$0200a8c0>