From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 54C5715813A for ; Fri, 17 Jan 2025 07:01:59 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 9807AE07D8; Fri, 17 Jan 2025 07:01:48 +0000 (UTC) Received: from mail-io1-xd32.google.com (mail-io1-xd32.google.com [IPv6:2607:f8b0:4864:20::d32]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 4A06FE076B for ; Fri, 17 Jan 2025 07:01:47 +0000 (UTC) Received: by mail-io1-xd32.google.com with SMTP id ca18e2360f4ac-844e161a8b4so60696639f.0 for ; Thu, 16 Jan 2025 23:01:47 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1737097305; x=1737702105; darn=lists.gentoo.org; h=content-transfer-encoding:in-reply-to:mime-version:user-agent:date :message-id:autocrypt:from:references:to:subject:from:to:cc:subject :date:message-id:reply-to; bh=vtM9We71bFfks8jEzA9pSxfxs7/sjm/OnWZvM7gl4c8=; b=T98Buo+r4vXPjdkrYMyvoHsnFeJdcq+apzJ+PrSjyMaHKyvGYmRvg8CXRHyV5rkLdl RCQvVCXrVKt2sO/zd3S/HXPr7ZT94pyVxja8/mQILTQXAzsa0o/Zn+J/MoQ7HCluRtBu c0JHP16B+A/dYoOlwaS/Mk2XWdRGjBJiutJeNFCOFo80TkIu6l1Z0vYSX0NXUmz/QWSt kYAPv2YTQe/IvpOr7ysWjP2w6rQy57DsxCwU7YxFoxl76fV+C+OEDWRxmIcuaEuScq42 0mIs6ZjI7nCl5fM79lZMH9lCKN4xzf9mrgCCE1ZhV/rpWq3ycRHg2E43mph0OC4HcNRs 9UGw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1737097305; x=1737702105; h=content-transfer-encoding:in-reply-to:mime-version:user-agent:date :message-id:autocrypt:from:references:to:subject:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=vtM9We71bFfks8jEzA9pSxfxs7/sjm/OnWZvM7gl4c8=; b=pymAqngHQpOD1K58u/ktOdysxe1tPZksDbI3umUQzbWP9XF0Yx834hhDfMe0WuOSoR kXj8+cOfnZQLrqNF0HWjPHaqKIYyeekcqXUfPUhjo3cFucY9lbH0096Q1mDRO5zcAnJI eM7ehIizBPlzli3ZzAkyvMkZDrlHPZxMFgWKjlDfdp+JaAEJBxCDQW58/jDS6MCEQOL7 o1hZMQpY4jtWcUIm4+3/eHI7eR1gkWtz50YonZdXZkoMvicQz4BhtPBy3nBKLIcsfvn2 3hgKAqwLuEn1wIq8RtIbjX7qNXV7jy0WmTbTJsNdm9d5J1KyzQ/siHwMNP30KdWKheK3 TQOw== X-Gm-Message-State: AOJu0Yzas4lOqc0h2vAucRlCfxdaThAlQXqtb8mAQFuh2jsIHBtwFqrk GuvRwgP5PEVWzfJ9mqo+XwrLoGRcLXO8qzmBt0vZ2BowU4uRna9p X-Gm-Gg: ASbGncsaJkGA5McL2lsB9f1MT7ATaotW9HSmC/9MBo+Ih68eBUn1dF1hdkrHFN3Zhtv w3HDTNVe7H8Yum9UqncvkRo9HIBBvXTy/wCZD7NHW3tc/w+IendKjM/VlhQskQHt/81ddMmppR5 QwpT73Qq3ilPbAQdricchFnI0TLE/zMRhOKcELDjrdkDNW6R2aW6yRwddIdu1A6diAponG4xTdo wkCEEjtQZHlXCxLcd4HSW+vDC6+xs86uLm1x2S2reqgmTvDhWBKTLY= X-Google-Smtp-Source: AGHT+IHJwzJ5mNA91iZetmq5sEPMgOT2r+6mqeRD9KBdRrVKfIXd2QusLEcx+qDcLLBPR+uzS3LBFQ== X-Received: by 2002:a05:6602:3e94:b0:843:e667:f196 with SMTP id ca18e2360f4ac-851b61ee917mr115244739f.4.1737097305220; Thu, 16 Jan 2025 23:01:45 -0800 (PST) Received: from [10.8.8.4] ([212.102.44.74]) by smtp.gmail.com with ESMTPSA id 8926c6da1cb9f-4ea7566e48asm490428173.108.2025.01.16.23.01.43 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 16 Jan 2025 23:01:44 -0800 (PST) Subject: Re: [gentoo-user] Dolphin and extracting archives, .zip at the moment. To: gentoo-user@lists.gentoo.org References: <5853334.DvuYhMxLoT@rogueboard> <904f88ee-5eb4-9970-778f-7518aa6005b5@gmail.com> <3264165.5fSG56mABF@rogueboard> From: Dale Autocrypt: addr=rdalek1967@gmail.com; prefer-encrypt=mutual; keydata= mQINBGFSciYBEADcEGMyJBSuavKO/XKUVvgkxck7Nl8Iuu8N2lcnRji/rSKg5c1Acix1ll9i oW8JBCHwvn0+Xy60BvEsqcup3YSHw5STl/bR1ePEehtnYrg8FdjdS91+B805RfnKMm69rFVI wLSBHQrSG1yxHd8CloWoEdhmVtP24buajbh114bgXd9ahtpZrCVMrWdWYUg2mEXguGV5uNAh Rf8SWxDNc79w24JxsV34a8niMUYMjzWr0rafIbzk732X38vGjVMLo/2mMpkbp9mPp++LHoY+ 0Pet8zxxdXPJSCd475kza1AD+hhSyBZXB9yknYWgyY3cZe1rGmooJSi2KX4QxO7npwLThcO1 be6KKRkd35+Fi/a1BzVOHsZMiK/gcwxEFoMd27gir4ehaeHJfFXl+65w4hj0EsOZSxrJrm2C R50g5By2czSKP1bADEygFNpIJj51AR+wM88NImG2RPtlT2maYBzazvF05g65cdHXGp1C7W5P wwwKU2DgABB2t7N7z5A69LnryBRw4zUYDRRYLTYlBlYgg+xILm2c0OrBdxJgLJa7JE50Eo25 d3PFwt9J0gYvqy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hpvj4z29Gh 3kAxVHItAYq54ikxQ9l4hQ8s9sLYPbX/WtcBxNX8crBSw0FLnmzGleVEtBHyqtt5CLzQNgrj GYWl1vKDUmRPw1CdZ1c+fMN9CY11jOM5B5ZnqZWfDeVYO2iJ5SuvTycChexCb8WYn1bdCBIo bBtga2RBXbVt4Mh9E4owsszefn51MwfjXxB20Fc5k3GU1AVpTCMs3ayYCzo0b2pvEvdjtDcA CYLEFPWgaFX9iQAM/CDfKvTtvgGWpqtCL2raq/mQoJEU Message-ID: Date: Fri, 17 Jan 2025 01:01:42 -0600 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Firefox/91.0 SeaMonkey/2.53.19 Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-user@lists.gentoo.org Reply-to: gentoo-user@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Archives-Salt: af035740-79c2-4ea8-9622-604acffe3523 X-Archives-Hash: c0a376e50bd8e0201b1ccf627f1362f7 Frank Steinmetzger wrote: > Am Tue, Jan 14, 2025 at 07:06:16AM -0600 schrieb Dale: >> Michael wrote: >>> On Monday 13 January 2025 14:17:41 Greenwich Mean Time Dale wrote: >>> It does this by default when you select to 'Extract here'. For example, the >>> archive foo.zip will be extracted into a new directory called foo/ and all >>> compressed files in foo.zip will be extracted into foo/. >>> […] >> That seems to work like the old way.  I guess the default changed but it >> didn't make sense given how it used to work.  > I thought it would behave like you expected – always create a subdir for > each ZIP. I could reproduce that it does not. So I looked at Ark’s settings: > there is an option to create a subdirectory for a ZIP as soon as the zip > contains more than one item. So it is still there, but not for every file. > >>>> I tried to figure out how to do this on the command line but my head >>>> hurts. Banging that wall isn't any fun. >>> I don't think a single command can achieve this. Unzip will ask if you want >>> to overwrite files already extracted in a previous attempt and it will create >>> a directory to store the extracted files if one does not exist, but it will >>> not ask to rename an existing directory. >>> >>> >>>> Anyone been able to figure out how to do this? I got a few hundred .zip >>>> files and doing them one by one just isn't a good option. >>>> >>>> Dale >>>> >>>> :-) :-) >> >> I figured if there was a command line way, it would require sed, awk, >> find and other things I don't understand. > Don’t give one-liners more credit than they’re due. All you need is a > for-loop over all ZIP files, calculate an ouput dir by removing the trailing > “.zip”, and finally call unzip with both: > > for z in *.zip; do unzip "$z" -d "${z%.zip}"; done > > If you want to be smart, omit the extraction if the output directory already > exists, to avoid overwriting stuff: > > # for-loop: cut off ".zip" does dir exist? yes no > for z in *.zip; do d="${z%.zip}"; [ -d "$d" ] && echo "Skipping $z" || unzip "$z" -d "$d"; done > Well, that went right over my head.  Been reading that on occasion the past day or so and still not sure, despite your notes, how that works.  I'm glad the GUI one works.  :-D  Dale :-)  :-)