Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: script within find
- X-seq: zsh-users 11450
- From: "Alexy Khrabrov" <deliverable@xxxxxxxxx>
- To: "Chris Johnson" <cjohnson@xxxxxxxxxx>
- Subject: Re: script within find
- Date: Wed, 25 Apr 2007 15:26:47 -0700
- Cc: zsh-users@xxxxxxxxxx
- Dkim-signature: a=rsa-sha1; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=MCQHrGmgGktuoZFCrvsn1JIpOV3PgTDF83RGiNYvuIRP+CDvOBTPwoE3S2+Tysj2fiwqpOFepLJoBXYJqJAmWa1dThCNMtLrDiytceJBA7io9I1nvkR0jK7bLjn1d6kZKSHCI9lFk9UWRaeHNzp/P0VSX29IDOHGk2YI5svtA2E=
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=XUCY2FAwJ0coymEqbQSQ3onhw06IDmuRY31rsr6BOVe2yzcclGjVKxGFt+rYcCibhVjKpHz0j8pc9zfF8UuRGAdrkAECB44KUx8WsIxL7O6Dbv4D7ZoAPDQPQU8A2gI+8JbL2GQaRfzI1rFh6EoOH9YIL0uEeAs3/HmRbiT5GHM=
- In-reply-to: <20070425215843.GB8900@xxxxxxxxxxxxxxxxx>
- Mailing-list: contact zsh-users-help@xxxxxxxxxx; run by ezmlm
- References: <7c737f300702232339keaffa58g99b1f51de74e0c8a@xxxxxxxxxxxxxx> <20070224100809.GA4828@xxxxxxxxxxxxxxx> <7c737f300704251214r602027a4u2d3533370fd317a9@xxxxxxxxxxxxxx> <20070425215214.GA8900@xxxxxxxxxxxxxxxxx> <20070425215843.GB8900@xxxxxxxxxxxxxxxxx>
The cp -r is exactly what I want to avoid with convert, since each
TIFF is a slide scan about 120 MB in size.
BTW, how'd I copy just the directory structure from /tifs/ to /jpgs/
-- directories only -- in the shortest and prettiest way? :)
(All the questions you always wanted to find out and where afraid to ask!:)
Cheers,
Alexy
On 4/25/07, Chris Johnson <cjohnson@xxxxxxxxxx> wrote:
Chris Johnson sent me the following 1.0K:
> Alexy Khrabrov sent me the following 2.2K:
>
> > The command to do a single conversion is
> >
> > convert -quality 100 dir1/A.tif /jpgs/dir1/A.jpg
>
> I think it'd be simpler to do something like:
>
> $ cp -r dir1 /jpgs
> $ mogrify -format jpg /jpgs/**/*.tif
Sorry. The conversion isn't done in place. You'll end up with *.tifs
and *.jpgs in the same directory under /jpgs. You'll want to issue
$ rm /jpgs/**/*.tif
to get rid of the copies of the originals, or operate in the original
hierarchy and do a selective copy.
--
Chris Johnson
cjohnson@xxxxxxxxxx
http://www.cs.utk.edu/~cjohnson
Messages sorted by:
Reverse Date,
Date,
Thread,
Author