From nobody Sun Feb 12 13:45:49 2023 X-Original-To: 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 4PF7z85pTcz3pk6S for ; Sun, 12 Feb 2023 13:45:56 +0000 (UTC) (envelope-from freebsd@edvax.de) Received: from mout.kundenserver.de (mout.kundenserver.de [217.72.192.73]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "mout.kundenserver.de", Issuer "TeleSec ServerPass Class 2 CA" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4PF7z81ml3z4Jkh for ; Sun, 12 Feb 2023 13:45:56 +0000 (UTC) (envelope-from freebsd@edvax.de) Authentication-Results: mx1.freebsd.org; none Received: from r56.edvax.de ([94.222.18.14]) by mrelayeu.kundenserver.de (mreue108 [212.227.15.183]) with ESMTPA (Nemesis) id 1MryOx-1ooovr1wO5-00nx7u; Sun, 12 Feb 2023 14:45:50 +0100 Date: Sun, 12 Feb 2023 14:45:49 +0100 From: Polytropon To: Kurt Hackenberg Cc: questions@FreeBSD.org Subject: Re: remove double quote character from file names Message-Id: <20230212144549.82a9c24e.freebsd@edvax.de> In-Reply-To: References: Reply-To: Polytropon Organization: EDVAX X-Mailer: Sylpheed 3.1.1 (GTK+ 2.24.5; i386-portbld-freebsd8.2) 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 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Provags-ID: V03:K1:fpUuVnaKL6Jc26kT/AwGMf8Ubf08cj5ZZjTpG2XIrGL9kBLlf+K aO+/ue1YNiGH9iqmTt4b8g1b6dcuA3JAi+VI0u7WPkiuu5OkgAp+gAH8ImhUDiPWgwhqzuA h4djlZ21msnLjyMqK2d2cY9MW4p8hI59NoE/h9tzS2BGdAw424bU/B5eBEFkpli8ckPzXZh zcNtilDViWbWmpsDFj7jA== X-Spam-Flag: NO UI-OutboundReport: notjunk:1;M01:P0:3sitCi8low4=;A1fjYF4Wb4SrWBRSJwWBxdLcryn qySswaOHDzcFkTcXNlfLa2o3IhfSQBLubbUCsjd5TBTk90fF9zAhUvhoqIU8SYJqjj8d6OrWu U9e5z/FN1z8GtB1XKc7+St3EIOHflcHz0vWFThrrwVlLSfuJtB/iMb+BT3eWLwHpH0qm5tBau fyXSAQjAeZt4rztmr8W5rkyMK9MKXamB06p7XHQd/RYsppdp2h37hScXh3dT5/nzNDlzkmdVH Yl8eHMaSSFTADNA64sU6bRfxibqvq2ZjG+3wkwGn6fTYEBbiX+2RvPsDorS1BGOMHVoN8EpcQ 56kFn1U3RBB0YfWsrlxhGIcYV/B0/VMKOryJtUoiYPjf9rSHlJ0RnJ+5VC5ixOKnZ2r0as+Ma nSQk/oz0W3P6RNccPkordWOLfRUbMAxYtQkC0V79eJC7pfOU4kki+cfcGfoPLsgp4zvUpr4LI YcHMg7nn7Bpr6u6Mz4mvptQBjaLhiF9eXdC5do3nats3haEXP+eRKdi0LPkC4Qx4+YfE3OWWW nPv0P89QjwJwyohfJguNcQCm0oyoa6z85aoxLFW2vAxF4FcxyiRmxMne8BRUzOSK9NyKU283n n6g1ZySMFDermnhC62O6DbmB8OVapWyH+5ao/iZPY5gU53aHtwamFSj8625kLmyw2RwLj9MyB 8YI4wy95tiimP45X47MNZGR61X2mR9ED7YQ52Z6vWQ== X-Rspamd-Queue-Id: 4PF7z81ml3z4Jkh X-Spamd-Bar: ---- X-Spamd-Result: default: False [-4.00 / 15.00]; REPLY(-4.00)[]; ASN(0.00)[asn:8560, ipnet:217.72.192.0/20, country:DE] X-Rspamd-Pre-Result: action=no action; module=replies; Message is reply to one we originated X-ThisMailContainsUnwantedMimeParts: N On Sat, 11 Feb 2023 13:31:49 -0500, Kurt Hackenberg wrote: > On Sat, Feb 11, 2023 at 03:58:50PM +0100, Per olof Ljungmark wrote: > > >A little help on the way, I need to find and remove the double quote (") > >character from all files in a directory structure containing hundreds of > >thousands of files. > > That's nasty. Be careful, keep backups. > > I might use a full-on programming language -- maybe Python or Ruby -- > to avoid the difficulties of shell parsing and quoting. However, if you > want to do it through a shell, this might be helpful: > > And just in case other special characters appear: Fixing Unix/Linux/POSIX Filenames: Control Characters (such as Newline), Leading Dashes, and Other Problems by David A. Wheeler 2018-06-24 (originally 2009-03-24) https://dwheeler.com/essays/fixing-unix-linux-filenames.html -- Polytropon Magdeburg, Germany Happy FreeBSD user since 4.0 Andra moi ennepe, Mousa, ...