From nobody Sat Feb 11 15:23:31 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 4PDZBV2gxjz3pBPM for ; Sat, 11 Feb 2023 15:23:46 +0000 (UTC) (envelope-from michaelsprivate@gmail.com) Received: from mail-lj1-x229.google.com (mail-lj1-x229.google.com [IPv6:2a00:1450:4864:20::229]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtp.gmail.com", Issuer "GTS CA 1D4" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4PDZBV0TZ9z3vbl for ; Sat, 11 Feb 2023 15:23:46 +0000 (UTC) (envelope-from michaelsprivate@gmail.com) Authentication-Results: mx1.freebsd.org; none Received: by mail-lj1-x229.google.com with SMTP id h17so9770145ljq.4 for ; Sat, 11 Feb 2023 07:23:46 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=EvPsRTMKIaQwO7QTYi20NFhK7mg9P+9XqZ/8rV5NDko=; b=oFsQwcglEtTKqQJFM6LvTk5F/xUvVeZAHbbqs4HnGTPQsSbUYBP8xiAwbjiz7aPAbO mIjziAmlh3aH+D5zlEgOiUEQStqh/GP6to0QePzAu9F9M6/Pl0p8nNzQy7khXtXJOjAS e6m4Oux+D5YSw8DzBq13/zX4xWFc8ezbfvuXchaMg1BGupJjUtZN0m51d6USs9LI+yIU dZMQfiswe0zSPduPe5XteQxiH3F1i48tsgE5KM34f4J0IsXODB8hHqA++lTwTTHm2Oqy cZj/dnXzHoX346ikPqfBjXjWKi7mGLMRN2MQXmLV4k/iFheoFfvXVN4KVrr8I6+JNCmH RZnQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=EvPsRTMKIaQwO7QTYi20NFhK7mg9P+9XqZ/8rV5NDko=; b=VOXzfNbqUQfZnxglTSGJr0I4UWyCV/fRbepeGSSnT+H4keigJHtHZPrJeAq7VygHix DsRUGQXx/LLWzgo42na69KGkTfjqKze7W7PQff76XzSgU0wZH+yGT5OHINzwLlGq7cwC ihAHhYUDfmAWBmMH5DXgGLttsjfq9If13r7mtzSvbXnxI4I7xdoFjrAmUbOi4+tziE6o pdEUS7DCC/h48fwZBKB4R9SxkyoLm1v74+ixFbgdab6OxMA1MATJWVhDbFIBiAHAnZ5K aoPcs6VcC/JeYUrV8F6GY4CClTi/8XWFVc03SNe0w6p1UaYIBZGRstYOM6+07VOS7YAG hsZA== X-Gm-Message-State: AO0yUKWjWL2YAcYwnknLvu+cmtRYqPc0SC65yG2T7GBgwBbpatRGazZV joP0Lm4Dhqw8lWcwmX4VK7htH2XVdZlFqIFxiqg= X-Google-Smtp-Source: AK7set8thAAv8Kjza5CWRevMyxfsuMU4JzUhIEsjH7iiDwKhecgyzDxnm7DjgN1DaFrC7pNxXdW4eBY3qLCRiAvBJdM= X-Received: by 2002:a2e:b544:0:b0:28f:e4c0:2c13 with SMTP id a4-20020a2eb544000000b0028fe4c02c13mr3232956ljn.125.1676129024120; Sat, 11 Feb 2023 07:23:44 -0800 (PST) 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 References: In-Reply-To: From: Michael Schuster Date: Sat, 11 Feb 2023 16:23:31 +0100 Message-ID: Subject: Re: remove double quote character from file names To: Per olof Ljungmark Cc: freeBSD Mailing List Content-Type: multipart/alternative; boundary="0000000000001498fe05f46e33ab" X-Rspamd-Queue-Id: 4PDZBV0TZ9z3vbl X-Spamd-Bar: ---- X-Spamd-Result: default: False [-4.00 / 15.00]; REPLY(-4.00)[]; ASN(0.00)[asn:15169, ipnet:2a00:1450::/32, country:US] X-Rspamd-Pre-Result: action=no action; module=replies; Message is reply to one we originated X-ThisMailContainsUnwantedMimeParts: N --0000000000001498fe05f46e33ab Content-Type: text/plain; charset="UTF-8" On Sat, Feb 11, 2023, 15:59 Per olof Ljungmark wrote: > Hi all, > > 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. > > I am sure plenty of you have done this before... I've gotten as far as > > find . -type f -name '*"*' -exec rename 's|"|in|g' {} \; > find: rename: No such file or directory > > The find part works but not renaming so I'm missing something there. > The usual utility to rename a file is "mv" (no quotes :-)) Does that help? > > Thanks, > Per > > > --0000000000001498fe05f46e33ab Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable

=

On Sat, Feb 11, 2023, 15:59 Per olof Ljungmark <peo@nethead.se> wrote:
Hi all,

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.

I am sure plenty of you have done this before... I've gotten as far as<= br>
find . -type f -name '*"*' -exec rename 's|"|in|g'= ; {} \;
find: rename: No such file or directory

The find part works but not renaming so I'm missing something there.

The usual= utility to rename a file is "mv" (no quotes :-))=C2=A0

Does that help?=C2=A0

Thanks,
Per


--0000000000001498fe05f46e33ab--