From owner-freebsd-isp Sun May 9 9:54: 8 1999 Delivered-To: freebsd-isp@freebsd.org Received: from backup.af.speednet.com.au (af.speednet.com.au [202.135.206.244]) by hub.freebsd.org (Postfix) with ESMTP id 4F06E15B9F for ; Sun, 9 May 1999 09:54:02 -0700 (PDT) (envelope-from andyf@speednet.com.au) Received: from backup.zippynet.iol.net.au (backup.zippynet.iol.net.au [172.22.2.4]) by backup.af.speednet.com.au (8.9.1/8.9.1) with ESMTP id CAA16086; Mon, 10 May 1999 02:53:56 +1000 (EST) Date: Mon, 10 May 1999 02:53:56 +1000 (EST) From: Andy Farkas X-Sender: andyf@backup.zippynet.iol.net.au To: Edwin Culp Cc: freebsd-isp@FreeBSD.ORG Subject: Re: duplicate file finder In-Reply-To: Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-isp@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org > > Yes, I've managed to put two one-liners together to get what I want: > > # find . -type f -exec md5 "{}" \; | awk '{printf "%s %s\n", $4, $2}' \ > | sort > md5-list > > # find . -type f -exec md5 "{}" \; | awk '{print $4}' \ > | sort | uniq -d | grep -f - md5-list Hmmm, I've changed the second line in the name of efficiency: # cat md5-list | awk '{print $1}' | uniq -d | grep -f - md5-list -- :{ andyf@speednet.com.au Andy Farkas System Administrator Speed Internet Services http://www.speednet.com.au/ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-isp" in the body of the message