From nobody Sat Feb 11 18:00:09 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 4PDdg86zF1z3pmMW for ; Sat, 11 Feb 2023 18:00:20 +0000 (UTC) (envelope-from boyvalue@gmail.com) Received: from mail-qt1-x836.google.com (mail-qt1-x836.google.com [IPv6:2607:f8b0:4864:20::836]) (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 4PDdg852Whz4Sw6 for ; Sat, 11 Feb 2023 18:00:20 +0000 (UTC) (envelope-from boyvalue@gmail.com) Authentication-Results: mx1.freebsd.org; none Received: by mail-qt1-x836.google.com with SMTP id g8so9414022qtq.13 for ; Sat, 11 Feb 2023 10:00:20 -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=I0Xefo5ZMVFBAfzSusoR6JD0myEckpx+aFgUbOgkwlQ=; b=Rewk8EhimyCkEYOmspw3CyX6s8ZAbkA2ALYPc8QrLtIc7lrjvDO0nOcRedhqu6i/ov 0bCuuK1w5xXGq0tGUJB5iARI0+44EQhQzIQ8+9dlTZLZ5tXVf+Ri74wOXncFDvg0ovDl TrVAnIj0mMQfbfKlpCiW5wfm1CDuDxlhSXg+xlTIJ4vL5SM4kiScLjWyqdgmx4GG0UiY z1uGYU4Acn72bRtrijlh2aOmiQ6TcIqAZIw0y4nRqm86fZYqkVNvwAJxskvTebbk8cq+ vBjhA6hPdV7ASbIcaICPkwe7YhotricE1evKHjK3KtyXQ88mclb9qSJczY98Kv7fxLKC m0LA== 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=I0Xefo5ZMVFBAfzSusoR6JD0myEckpx+aFgUbOgkwlQ=; b=Tvh2hvX1/R7qvVfJ9EJ9d7rhT8i9lX9IbiyL3mHF5ACFA6xshV+OVYRfMoEsZZ4bMW krH0RNc8GFK9pEnOYREDzh+a0cN+PaWlt8VJWwThtB3DtXFm/AsV7cmmuUy9/ue9RAQ3 Sdb5Rmy62eXPFy/iAqh5oqykJU900NWKlkH+SWW1Bu6gYo4Wnd44Ig9mHY6KvSFKSJVx jXAQGPT6EWvlimVAg7wDeqqcTLuzPpWdu0teWWy8RfKTxQ+hlAwWWXdmqWe790Yg20e5 6TS5OGGoJ9G8k5DUHKOLNFzBUNw1vST/SOSkFsY3ZZLPviX9yvfyrYm6Q/EzVfisOA0z 4jeA== X-Gm-Message-State: AO0yUKXKaFryFcywrq4m6l8O1hlFo/lq8GMB5rC6OsvevTwLGGQzLXC9 eNYiGdSmvg6vWMnIHcBteqIQu4b/C0Qkh0Jg/g== X-Google-Smtp-Source: AK7set/Jntx9hCT1cIY6OWv30PiwpJugOgvQ3BvvW2Y4OMabDwp0Eny42IppTg/ZuS1QUheJjYfMSOn3mEfFKu1N9eY= X-Received: by 2002:a05:622a:1301:b0:3b8:5b81:a434 with SMTP id v1-20020a05622a130100b003b85b81a434mr2590085qtk.233.1676138419907; Sat, 11 Feb 2023 10:00:19 -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: Scott Ballantyne Date: Sat, 11 Feb 2023 13:00:09 -0500 Message-ID: Subject: Re: remove double quote character from file names To: Per olof Ljungmark Cc: questions@freebsd.org Content-Type: multipart/alternative; boundary="0000000000001cef6f05f470639e" X-Rspamd-Queue-Id: 4PDdg852Whz4Sw6 X-Spamd-Bar: ---- X-Spamd-Result: default: False [-4.00 / 15.00]; REPLY(-4.00)[]; ASN(0.00)[asn:15169, ipnet:2607:f8b0::/32, country:US] X-Rspamd-Pre-Result: action=no action; module=replies; Message is reply to one we originated X-ThisMailContainsUnwantedMimeParts: N --0000000000001cef6f05f470639e Content-Type: text/plain; charset="UTF-8" On Sat, Feb 11, 2023 at 11:43 AM Per olof Ljungmark wrote: > On 2/11/23 16:43, Scott Ballantyne wrote: > > > > Remove the first echo command to actually do any changes. Untested. > > for f in $(find . -type f -name '*"*'); do echo mv $f $(echo $f | tr -d > > '"'); done > > Produced "No such file or directory" errors. You must have spaces in the filenames. You can deal with that using IFS. > > > --0000000000001cef6f05f470639e Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable


On Sat, Feb 11, 2023 at 11:43 AM Per olo= f Ljungmark <peo@nethead.se> wr= ote:
On 2/11/23 = 16:43, Scott Ballantyne wrote:
>
> Remove the first echo command to actually do any changes. Untested. > for f in $(find . -type f -name '*"*'); do echo mv $f $(e= cho $f | tr -d
> '"'); done

Produced=C2=A0 "No such file or directory" errors.

You must have spaces in the filenames. You can deal with = that using IFS.

=C2=A0


--0000000000001cef6f05f470639e--