From owner-freebsd-questions@FreeBSD.ORG Sun Oct 28 18:24:56 2007 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 D692C16A421 for ; Sun, 28 Oct 2007 18:24:56 +0000 (UTC) (envelope-from bitabyss@gmail.com) Received: from cartman.xxiii.com (cartman.xxiii.com [208.62.177.45]) by mx1.freebsd.org (Postfix) with ESMTP id 7C75813C4BE for ; Sun, 28 Oct 2007 18:24:56 +0000 (UTC) (envelope-from bitabyss@gmail.com) Received: from [192.168.1.23] (adsl-068-209-177-221.sip.ard.bellsouth.net [68.209.177.221]) by cartman.xxiii.com (8.13.8/8.13.8) with ESMTP id l9SIOs51074138; Sun, 28 Oct 2007 14:24:55 -0400 (EDT) (envelope-from bitabyss@gmail.com) Message-ID: <4724D3F3.3040902@gmail.com> Date: Sun, 28 Oct 2007 14:24:51 -0400 From: Rob User-Agent: Thunderbird 1.5.0.13 (Windows/20070809) MIME-Version: 1.0 To: stevefranks@ieee.org, freebsd-questions@freebsd.org References: <539c60b90710281017r4db40821s358b67049ee7b063@mail.gmail.com> In-Reply-To: <539c60b90710281017r4db40821s358b67049ee7b063@mail.gmail.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: Subject: Re: cp --verify? 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: Sun, 28 Oct 2007 18:24:56 -0000 Steve Franks wrote: > I don't see a --verify switch on cp, so I presume it does not. Is > there an automated way to ensure a copy has gone well byte-for-byte > without writing a script to filter diff? I want to be relatively sure If you use the diff command and specify directories, it will compare the contents of each, as well as comparing all the files byte for byte. Check "man diff" -- there should also be an option to check down through any subdirectories as well. -Rob