From owner-freebsd-questions@freebsd.org Mon Nov 2 18:11:56 2020 Return-Path: Delivered-To: freebsd-questions@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 0DE0B4571EB for ; Mon, 2 Nov 2020 18:11:56 +0000 (UTC) (envelope-from peo@nethead.se) Received: from ns1.nethead.se (ns1.nethead.se [5.150.237.139]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "ns1.nethead.se", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4CQ1G30QwCz3YnW for ; Mon, 2 Nov 2020 18:11:54 +0000 (UTC) (envelope-from peo@nethead.se) X-Virus-Scanned: amavisd-new at Nethead AB DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=nethead.se; s=NETHEADSE; t=1604340703; bh=asRQQe54WablbFYk8u36OkcTxzzJ00F+qKnt0Kriuko=; h=To:From:Subject:Date; b=vZfkooOBz7QHYrpoLDJv62XeHnFXd/NhXqBk2iCO4MtMDxuvj8vesIJfBzs3hOEBe HHPvGhjt8tt+kivJLIcTk1xTBW9t9Q0AQ/WPZTPxScBYTvDmb4z1ruMupdXTzuAytY vVFiiinQOiVtyD8kvPOPDxpvN9h0oZsARrNoO5NE= To: freebsd-questions@freebsd.org From: Per olof Ljungmark Subject: simple shell script to compare two dirs recursively Message-ID: <34dfc85a-b985-e31f-a6b2-cf14f1f56fd2@nethead.se> Date: Mon, 2 Nov 2020 19:11:41 +0100 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:68.0) Gecko/20100101 Thunderbird/68.10.0 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-Rspamd-Queue-Id: 4CQ1G30QwCz3YnW X-Spamd-Bar: --- Authentication-Results: mx1.freebsd.org; dkim=pass header.d=nethead.se header.s=NETHEADSE header.b=vZfkooOB; dmarc=pass (policy=none) header.from=nethead.se; spf=pass (mx1.freebsd.org: domain of peo@nethead.se designates 5.150.237.139 as permitted sender) smtp.mailfrom=peo@nethead.se X-Spamd-Result: default: False [-3.40 / 15.00]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-1.03)[-1.032]; R_DKIM_ALLOW(-0.20)[nethead.se:s=NETHEADSE]; FROM_HAS_DN(0.00)[]; TO_MATCH_ENVRCPT_ALL(0.00)[]; R_SPF_ALLOW(-0.20)[+ip4:5.150.237.139]; MIME_GOOD(-0.10)[text/plain]; TO_DN_NONE(0.00)[]; NEURAL_HAM_LONG(-1.00)[-1.001]; RCPT_COUNT_ONE(0.00)[1]; DKIM_TRACE(0.00)[nethead.se:+]; DMARC_POLICY_ALLOW(-0.50)[nethead.se,none]; NEURAL_HAM_SHORT(-0.37)[-0.366]; RCVD_COUNT_ZERO(0.00)[0]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+]; ASN(0.00)[asn:8473, ipnet:5.150.192.0/18, country:SE]; MID_RHS_MATCH_FROM(0.00)[]; MAILMAN_DEST(0.00)[freebsd-questions] X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.33 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 02 Nov 2020 18:11:56 -0000 Hi all, I could *probably* cook this myself with some time and patience, but now it is somewhat urgent, so if someone likes to share their already working solution I would be most grateful. I need a *simple* shell (does not matter which) script run by cron that recurses through two directories, compare all the files and produces simple diffs IF there are any. I'm sure this is something that a lot of you already did. Thanks so much to all the nice folks on the list and FreeBSD in particular! Per