From nobody Sat Feb 11 18:31: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 4PDfMf4Sk8z3pqPf for ; Sat, 11 Feb 2023 18:31:58 +0000 (UTC) (envelope-from kh@panix.com) Received: from mailbackend.panix.com (mailbackend.panix.com [166.84.1.89]) (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) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 4PDfMd5SLtz4YFy for ; Sat, 11 Feb 2023 18:31:57 +0000 (UTC) (envelope-from kh@panix.com) Authentication-Results: mx1.freebsd.org; dkim=pass header.d=panix.com header.s=panix header.b=eaAUe8rG; spf=pass (mx1.freebsd.org: domain of kh@panix.com designates 166.84.1.89 as permitted sender) smtp.mailfrom=kh@panix.com; dmarc=pass (policy=none) header.from=panix.com Received: from rain.cave (unknown [73.142.21.0]) by mailbackend.panix.com (Postfix) with ESMTPSA id 4PDfMW3fK3zGq3 for ; Sat, 11 Feb 2023 13:31:51 -0500 (EST) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=panix.com; s=panix; t=1676140311; bh=GZy4pA0WKOYkRlNC4ajgGlg8c+E/eeX/j51EzTsvV7Y=; h=Date:From:To:Subject:References:In-Reply-To; b=eaAUe8rGAggemb9AmshlSLtoy7GKR1DnxHKk1605AcpcRK2HYna00tG/4SSYA1epy 2G/J4351uS8KB+y9e62O6q5nhecahcsCTdeyCQ3tztkzCv9+EkOPOl+/gQK7HcxCqP 8XeKC2WZgQ5JPz6dHfGG58OOURU+s8/+yEsL++w8= Date: Sat, 11 Feb 2023 13:31:49 -0500 From: Kurt Hackenberg To: questions@freebsd.org Subject: Re: remove double quote character from file names Message-ID: References: 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; format=flowed Content-Disposition: inline In-Reply-To: User-Agent: Mutt/2.2.9 (2022-11-12) X-Spamd-Result: default: False [-4.10 / 15.00]; NEURAL_HAM_LONG(-1.00)[-1.000]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; NEURAL_HAM_SHORT(-1.00)[-0.998]; DMARC_POLICY_ALLOW(-0.50)[panix.com,none]; R_DKIM_ALLOW(-0.20)[panix.com:s=panix]; R_SPF_ALLOW(-0.20)[+ip4:166.84.1.64/26]; MIME_GOOD(-0.10)[text/plain]; RWL_MAILSPIKE_GOOD(-0.10)[166.84.1.89:from]; RCVD_VIA_SMTP_AUTH(0.00)[]; MLMMJ_DEST(0.00)[questions@freebsd.org]; FROM_EQ_ENVFROM(0.00)[]; ASN(0.00)[asn:2033, ipnet:166.84.0.0/16, country:US]; MIME_TRACE(0.00)[0:+]; DKIM_TRACE(0.00)[panix.com:+]; PREVIOUSLY_DELIVERED(0.00)[questions@freebsd.org]; RCVD_COUNT_TWO(0.00)[2]; ARC_NA(0.00)[]; RCPT_COUNT_ONE(0.00)[1]; FROM_HAS_DN(0.00)[]; TO_DN_NONE(0.00)[]; TO_MATCH_ENVRCPT_ALL(0.00)[]; RCVD_TLS_ALL(0.00)[] X-Rspamd-Queue-Id: 4PDfMd5SLtz4YFy X-Spamd-Bar: ---- X-ThisMailContainsUnwantedMimeParts: N 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: