From mboxrd@z Thu Jan 1 00:00:00 1970 To: 9fans@9fans.net From: Christian Neukirchen Date: Thu, 12 Mar 2015 19:09:02 +0100 Message-ID: <87pp8e9jgh.fsf@gmail.com> References: <8f07dd60b7c8ad5c85e3b6ed8ac18a37@brasstown.quanstro.net> Mime-Version: 1.0 Content-Type: text/plain In-Reply-To: <8f07dd60b7c8ad5c85e3b6ed8ac18a37@brasstown.quanstro.net> (erik quanstrom's message of "Thu, 12 Mar 2015 09:46:31 -0700") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.4 (gnu/linux) Subject: Re: [9fans] fun with rc Topicbox-Message-UUID: 49769d70-ead9-11e9-9d60-3106f5b1d025 erik quanstrom writes: > so an interesting problem i run into from time to time is separately computing > the files added to and deleted from a directory in a shell script. uniq doesn't > work for this. certainly one can loop over two lists of files and do > this easily, > but that seems dull and tedious. Isn't this a canonical use case for comm(1)? -- Christian Neukirchen http://chneukirchen.org