Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: Set difference between sets of files
- X-seq: zsh-users 14103
- From: Itai Fiat <itai.fiat@xxxxxxxxx>
- To: zsh-users@xxxxxxxxxx
- Subject: Re: Set difference between sets of files
- Date: Wed, 06 May 2009 20:01:13 +0300
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:subject:from:to:in-reply-to :references:content-type:date:message-id:mime-version:x-mailer :content-transfer-encoding; bh=VEFUtP+IzXzKTrEkhDlA1T8Iv+Z9ygbxZjOxmY4pizk=; b=uQuoivcwEBV7Z8TC7zyUsps/+ef4POjh2VelA6Lai5j2daYZbLnWJLDLyDKepFr7qR 2v9gb7lW4/kvzfGxNjDtTfPYp6RsEjRF4secBE72kv/zbDkwGOLxVSJ03IkKk5Y8Qd1y JUTdNAuktaeCgyiaLJYNgB6j/7IpH4Ifa1qBw=
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=subject:from:to:in-reply-to:references:content-type:date:message-id :mime-version:x-mailer:content-transfer-encoding; b=a4llt7021KwH2DG93wEgKGk2tKWczja37RuydHZH1PkSSKXdHmSoYNIGfp3fGP3DtF 1EFdeDs2HdKi8vlsMBddust2Jzos1vlAODzHAkh3g4zu7OvpAp67VdtF//4P+qNfb9Pq +tlEE69wvFIOoPYEekk8C+iJSzjmP0C6b/GRQ=
- In-reply-to: <20090506132729.GA17325@namib>
- Mailing-list: contact zsh-users-help@xxxxxxxxxx; run by ezmlm
- References: <94de1b620905050936g442490e4t3da42ac3946cb29@xxxxxxxxxxxxxx> <20090506132729.GA17325@namib>
On Wed, 2009-05-06 at 09:27 -0400, Chris Johnson wrote:
> Itai Fiat sent me the following 0.9K:
>
> > I would like to compute the set difference between two sets of files -
> > that is, obtain a list of files found in one set and not in the other.
>
> I know you said you wanted a zsh solution, but the utility rsync is
> great for this purpose.
>
Yes... But I did not declare my true purpose, opting instead for a
simplified example which I thought easier to explain. What I was really
after was syncing my music collection (in this particular case,
propagating deletions) between a FLAC directory structure and an MP3
equivalent. I posted a link to the complete script in a reply. I don't
think this is doable with rsync, but I have got feeling my entire script
could be replaced with two or three clever 'find' calls.
Messages sorted by:
Reverse Date,
Date,
Thread,
Author