From nobody Thu May 04 16:28:05 2023 X-Original-To: freebsd-questions@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4QBzlQ1Jz4z49HBb for ; Thu, 4 May 2023 16:28:34 +0000 (UTC) (envelope-from 93ab.82.c3aa0002f52193.db0e043e604088537b20ae640ced66cd@email-od.com) Received: from s1-b515.socketlabs.email-od.com (s1-b515.socketlabs.email-od.com [142.0.181.21]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 4QBzlN3Ydcz3rgh for ; Thu, 4 May 2023 16:28:32 +0000 (UTC) (envelope-from 93ab.82.c3aa0002f52193.db0e043e604088537b20ae640ced66cd@email-od.com) Authentication-Results: mx1.freebsd.org; dkim=pass header.d=tundraware.com header.s=slkey header.b=bXAiomZZ; dkim=pass header.d=email-od.com header.s=dkim header.b=s9eWmAUi; spf=pass (mx1.freebsd.org: domain of 93ab.82.c3aa0002f52193.db0e043e604088537b20ae640ced66cd@email-od.com designates 142.0.181.21 as permitted sender) smtp.mailfrom=93ab.82.c3aa0002f52193.db0e043e604088537b20ae640ced66cd@email-od.com; dmarc=pass (policy=reject) header.from=tundraware.com DKIM-Signature: v=1; a=rsa-sha256; d=tundraware.com;s=slkey; c=relaxed/relaxed; q=dns/txt; t=1683217713; x=1685809713; h=x-tundraware-mailscanner-from:x-greylist:content-transfer-encoding:content-type:in-reply-to:from:content-language:references:to:subject:mime-version:date:message-id:x-thread-info:subject:to:from:cc:reply-to; bh=JyIvRL7V2zJGn/wvcJVxIFWgcgaELfEgV/DSFTStc4k=; b=bXAiomZZFrXLXYlXsAXotCTGrNZOuo4BrtJASgSk7gp7YkIH0xxP89qH4Km4wI9beCNbno0v/ktS7PoKSvvC3fTFJJE2VvGoVyHZwjDHlAbh5+waa9p0PUAJjPzaqa5gs9V7JkR2OT/nCsejXFH9VQ4rOZ7Z0iVW5cy+jeZta/w9o3awdOW75+3DedpPeQlehxNLNebLGmUJnAzrwp/R6QVQGCy0KZEnU/3iFgifgUCdsTx77rrZKUZBG567ojJQsvrEjJs06RxfI6Iwg+I1C9zS7TWTOimzJFQjqX1YBrzCD+ReM9VaWeCohpf5fYLmtMkyfzcHV645HjfiamNW9g== DKIM-Signature: v=1; a=rsa-sha256; d=email-od.com;i=@email-od.com;s=dkim; c=relaxed/relaxed; q=dns/txt; t=1683217713; x=1685809713; h=x-tundraware-mailscanner-from:x-greylist:content-transfer-encoding:content-type:in-reply-to:from:content-language:references:to:subject:mime-version:date:message-id:x-thread-info:subject:to:from:cc:reply-to; bh=JyIvRL7V2zJGn/wvcJVxIFWgcgaELfEgV/DSFTStc4k=; b=s9eWmAUimf1uWzJBRJO9svzVKmi0/kGOy4TbEK0vbNRAl0Ycuc2umI2tZYG8Vt5i0dgSBjIMgyRxdelOzgycc3zmCt5L1nebdFSA4/pLO2XVv9T6gjnb2aqW/oz115uI9drtuXoAhZASJ4m2diw+jQRf8Ub+j3bLpdqM2wZBmDw= X-Thread-Info: OTNhYi4xMi5jM2FhMDAwMmY1MjE5My5mcmVlYnNkLXF1ZXN0aW9ucz1mcmVlYnNkLm9yZw== Received: from r1.us-east-1.aws.in.socketlabs.com (r1.us-east-1.aws.in.socketlabs.com [142.0.191.1]) by mxh4.email-od.com with ESMTP(version=Tls12 cipher=Aes256 bits=256); Thu, 4 May 2023 12:28:26 -0400 Received: from oceanview.tundraware.com (oceanview.tundraware.com [45.55.60.57]) by r1.us-east-1.aws.in.socketlabs.com with ESMTP(version=Tls12 cipher=Aes256 bits=256); Thu, 4 May 2023 12:28:24 -0400 Received: from [192.168.0.2] (ozzie.tundraware.com [75.145.138.73]) (authenticated bits=0) by oceanview.tundraware.com (8.17.1/8.17.1) with ESMTPSA id 344GSAHZ036395 (version=TLSv1.3 cipher=TLS_AES_128_GCM_SHA256 bits=128 verify=NO) for ; Thu, 4 May 2023 11:28:11 -0500 (CDT) (envelope-from tundra@tundraware.com) Message-ID: <604dd652-24ad-7774-5d0a-6f1ee2e4e6b6@tundraware.com> Date: Thu, 4 May 2023 11:28:05 -0500 List-Id: User questions List-Archive: https://lists.freebsd.org/archives/freebsd-questions List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-questions@freebsd.org X-BeenThere: freebsd-questions@freebsd.org MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.10.0 Subject: Re: Tool to compare directories and delete duplicate files from one directory To: freebsd-questions@freebsd.org References: <9887a438-95e7-87cc-a162-4ad7a70d744f@optiplex-networks.com> Content-Language: en-US From: Tim Daneliuk In-Reply-To: <9887a438-95e7-87cc-a162-4ad7a70d744f@optiplex-networks.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Greylist: Sender succeeded SMTP AUTH, not delayed by milter-greylist-4.6.4 (oceanview.tundraware.com [45.55.60.57]); Thu, 04 May 2023 11:28:11 -0500 (CDT) X-TundraWare-MailScanner-Information: Please contact the ISP for more information X-TundraWare-MailScanner-ID: 344GSAHZ036395 X-TundraWare-MailScanner: Found to be clean X-TundraWare-MailScanner-SpamCheck: not spam (whitelisted), SpamAssassin (not cached, score=-7.19, required 6, autolearn=not spam, ALL_TRUSTED -1.00, BAYES_00 -1.90, NICE_REPLY_A -4.28, T_SCC_BODY_TEXT_LINE -0.01) X-TundraWare-MailScanner-From: tundra@tundraware.com X-Spam-Status: No X-Spamd-Result: default: False [-3.70 / 15.00]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; NEURAL_HAM_LONG(-1.00)[-1.000]; NEURAL_HAM_SHORT(-1.00)[-0.999]; DMARC_POLICY_ALLOW(-0.50)[tundraware.com,reject]; FORGED_SENDER(0.30)[tundra@tundraware.com,93ab.82.c3aa0002f52193.db0e043e604088537b20ae640ced66cd@email-od.com]; R_DKIM_ALLOW(-0.20)[tundraware.com:s=slkey,email-od.com:s=dkim]; R_SPF_ALLOW(-0.20)[+ip4:142.0.176.0/20]; MIME_GOOD(-0.10)[text/plain]; MIME_TRACE(0.00)[0:+]; FROM_NEQ_ENVFROM(0.00)[tundra@tundraware.com,93ab.82.c3aa0002f52193.db0e043e604088537b20ae640ced66cd@email-od.com]; RCVD_IN_DNSWL_NONE(0.00)[142.0.181.21:from,142.0.191.1:received]; ASN(0.00)[asn:53658, ipnet:142.0.180.0/22, country:US]; RCVD_TLS_LAST(0.00)[]; MLMMJ_DEST(0.00)[freebsd-questions@freebsd.org]; RCVD_VIA_SMTP_AUTH(0.00)[]; RCVD_COUNT_THREE(0.00)[4]; MID_RHS_MATCH_FROM(0.00)[]; FROM_HAS_DN(0.00)[]; ARC_NA(0.00)[]; DKIM_TRACE(0.00)[tundraware.com:+,email-od.com:+]; TO_MATCH_ENVRCPT_ALL(0.00)[]; TO_DN_NONE(0.00)[]; PREVIOUSLY_DELIVERED(0.00)[freebsd-questions@freebsd.org]; RCPT_COUNT_ONE(0.00)[1]; DWL_DNSWL_NONE(0.00)[email-od.com:dkim] X-Rspamd-Queue-Id: 4QBzlN3Ydcz3rgh X-Spamd-Bar: --- X-ThisMailContainsUnwantedMimeParts: N On 5/4/23 10:53, Kaya Saman wrote: > Hi, > > > I'm wondering if anyone knows of a tool like diff or so that can also delete files based on name and size from either left/right or source/destination directory? I've never used it, but there is a port of fdupes in the ports tree. Not sure if it does exactly what you want though.