From owner-freebsd-questions@FreeBSD.ORG Wed Sep 12 01:16:34 2012 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id A5C70106564A for ; Wed, 12 Sep 2012 01:16:34 +0000 (UTC) (envelope-from colin.barnabas@gmail.com) Received: from mail-pb0-f54.google.com (mail-pb0-f54.google.com [209.85.160.54]) by mx1.freebsd.org (Postfix) with ESMTP id 76F9C8FC12 for ; Wed, 12 Sep 2012 01:16:34 +0000 (UTC) Received: by pbbrp2 with SMTP id rp2so1700662pbb.13 for ; Tue, 11 Sep 2012 18:16:28 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=date:from:to:cc:subject:message-id:references:mime-version :content-type:content-disposition:in-reply-to:user-agent; bh=pmzeRba+R0OkiZetzg1yLwT7FBjx0ULV5D6l5ONUfbw=; b=PiVBW0it0nG1AScZ5oC6839l8f006JRei023CslsdEoo2JtbAwxVdtNLiwpQgQ0PAL YcIC+Zf/ULui7SA/7cEGYJ5IuYWyK/IGjK2/8I5buEev08tGVap6jgcxVxfiMiSwys6O aSC4S3U9+radEuc6AVpZONu5HZWnozL48JpjH5PTJDPQGhsFtDVsoRPd/78ZLEzu4tTl MCUvFZl1/h3e+O3xpySYuWB4FVez9BOEttnqmwN1Ucm6IY3Q/aYBKDgxrk/cwwAhplgE SXBVRT/HiCR0xd1PTjFTPDyheqm0GJDt8h8TqzFf22yBQxOl6J6KUSjOcaRrHtJcWQg+ n1lA== Received: by 10.68.218.196 with SMTP id pi4mr13778379pbc.128.1347412588107; Tue, 11 Sep 2012 18:16:28 -0700 (PDT) Received: from localhost (ip68-98-76-182.ph.ph.cox.net. [68.98.76.182]) by mx.google.com with ESMTPS id io1sm10620284pbc.43.2012.09.11.18.16.22 (version=TLSv1/SSLv3 cipher=OTHER); Tue, 11 Sep 2012 18:16:23 -0700 (PDT) Date: Tue, 11 Sep 2012 18:17:25 -0700 From: Colin Barnabas To: Gary Kline Message-ID: <20120912011725.GG3066@hs1.VERBENA> References: <20120911213804.GA9817@ethic.thought.org> <20120912011443.5df17cf2.freebsd@edvax.de> <20120912002408.GA10496@ethic.thought.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20120912002408.GA10496@ethic.thought.org> User-Agent: Mutt/1.4.2.3i Cc: FreeBSD Questions Subject: Re: cksum entire dir?? X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 12 Sep 2012 01:16:34 -0000 On Tue, Sep 11, 2012 at 05:24:08PM -0700, Gary Kline wrote: > On Wed, Sep 12, 2012 at 01:14:43AM +0200, Polytropon wrote: > > On Tue, 11 Sep 2012 14:38:04 -0700, Gary Kline wrote: > > > > > > I'm trying to checksum directories as I move them around. > > > ive read the man page for sum and cksum ... or maybe skimmed > > > them. no joy. anybody know of a utility to do this? I've > > > got files that are decades old... > > > > Maybe it's possible to tar the directory (without > > compression of course) and obtain a checksum of > > the tar archive? > > > > % tar cf - | cksum > > > > But I also tried cksum directly with a directory > > like > > > > % cksum > > > > and could obtain a checksum - so it _seems_ to work. > > After alteration of one file within the hierarchy a > > different result was printed. > > > > Tested on OS version 8.2-STABLE/i386, one year old. > > > > > I think I tried something like your second example last night. > I think I did > > % cksum foodir/* > > and had to compare each file from another file I was copying from. > it was tiresome to check each of dozens of files tho. I was here at > desk for something obscene -- over 12 hrs. getting my new [slightly > used:)] computer back to normal. > > if there isn't anything that can compare entire dirs, it looks like > it's time to hack a small program. tx, polyt. > > gary > > > > > > -- > > Polytropon > > Magdeburg, Germany > > Happy FreeBSD user since 4.0 > > Andra moi ennepe, Mousa, ... > _______________________________________________ > freebsd-questions@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to "freebsd-questions-unsubscribe@freebsd.org" This works for me: $ find foo/ -type f -print0 | xargs -0 md5 >> foo.md5 Maybe for you as well? Hope I could help. -- Colin Barnabas _ ( ) ACII Ribbon Campaign - www.asciiribbon.org X No HTML/RTF in E-mail / \ Respect for open standards