Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: script within find
- X-seq: zsh-users 11451
- From: "Matt Wozniski" <godlygeek@xxxxxxxxx>
- To: zsh-users@xxxxxxxxxx
- Subject: Re: script within find
- Date: Wed, 25 Apr 2007 18:38:46 -0400
- Dkim-signature: a=rsa-sha1; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=AvBFUeeAd817JyJCJDMIbutZh7WDOyXi/nwX8bo7D4BK/BY0XukqLlxWuosJoN0Av2KRwp3YKcLDIpzhbgm5W0L7+o+01UVUdvBL/JxdiSXNB6m5LVJIrAwVscdjco0pLpHJaoxoeEE5oxbRb1aQQPYtzPKDCI5Ni8lxEF/H8ps=
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=lYZvKHmnOU34ASkZ2dGUc9ARbyGxG70jsMWxOswTi5GkDz7Oj/MgJExKoiDl7U5FvemsAgsx7+fpnzbArFw9Mn+rSYNYj6ohOJu/MvI59CtxTcF6EAPyaCBENyHb//KcGo4s75TLyLlZqzDbBoxeg8zNPq3L7FZpiCoFr7R0XGU=
- In-reply-to: <7c737f300704251526m48df5c7dk6d32b340547e012d@xxxxxxxxxxxxxx>
- Mailing-list: contact zsh-users-help@xxxxxxxxxx; run by ezmlm
- References: <7c737f300702232339keaffa58g99b1f51de74e0c8a@xxxxxxxxxxxxxx> <20070224100809.GA4828@xxxxxxxxxxxxxxx> <7c737f300704251214r602027a4u2d3533370fd317a9@xxxxxxxxxxxxxx> <20070425215214.GA8900@xxxxxxxxxxxxxxxxx> <20070425215843.GB8900@xxxxxxxxxxxxxxxxx> <7c737f300704251526m48df5c7dk6d32b340547e012d@xxxxxxxxxxxxxx>
BTW, how'd I copy just the directory structure from /tifs/ to /jpgs/
-- directories only -- in the shortest and prettiest way? :)
If I'm understanding your question correctly, you want to create a
copy of ./tifs called ./jpgs, and have the copy only contain
directories, no files. Is that correct?
If so, the following should tackle it:
for dir in tifs/**/*(/)
mkdir -p ${dir/tifs/jpgs}
I'm sure that there's a better way to do this that only requires an
"mkdir -p" on each leaf directory, but I can't think of it at the
moment and this should do what you want, if a bit inefficiently.
~Matt
Messages sorted by:
Reverse Date,
Date,
Thread,
Author