From nobody Sat Nov 30 19:44:18 2024 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 4Y10qW033Jz5fYH8 for ; Sat, 30 Nov 2024 19:44:23 +0000 (UTC) (envelope-from dr.klepp@gmx.at) Received: from mout.gmx.net (mout.gmx.net [212.227.15.19]) (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.gmx.net", Issuer "Telekom Security ServerID OV Class 2 CA" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4Y10qT4nCKz4PJ6 for ; Sat, 30 Nov 2024 19:44:21 +0000 (UTC) (envelope-from dr.klepp@gmx.at) Authentication-Results: mx1.freebsd.org; dkim=pass header.d=gmx.at header.s=s31663417 header.b="l/og/FGM"; spf=pass (mx1.freebsd.org: domain of dr.klepp@gmx.at designates 212.227.15.19 as permitted sender) smtp.mailfrom=dr.klepp@gmx.at; dmarc=pass (policy=quarantine) header.from=gmx.at DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmx.at; s=s31663417; t=1732995859; x=1733600659; i=dr.klepp@gmx.at; bh=oqglUr0bjFIjZCa/M7BglL2zQCeQrEYauwzX2K7RgcM=; h=X-UI-Sender-Class:From:To:Subject:Date:References:In-Reply-To: MIME-Version:Content-Type:Content-Transfer-Encoding:Message-Id:cc: content-transfer-encoding:content-type:date:from:message-id: mime-version:reply-to:subject:to; b=l/og/FGMgxfYIWOtrfGwomRiqw9AZwkilXe68+fFYWAY0vjoPhYlpc0DWUeOnQgC qoBau/+h2GXHzeifKDBR2W0tQ8hHuG3f4hh7TEsqkJom0WVBZRLRtFE2pG82QtNgm p1bv1hvFtaF4q1WROS5BD7c3nJCzaslb73tRezcV1fHBOych8tzwz3rssY7MKWpSV qpkZgU+0vIgqYGkKir9UAeOqMlXSppulIZ7oJa5wvBbxAoaRHUyAkBlCfP/Yhw8qB 4qAYArQcEeW3Jqa1kIhS79xz6Xr4rosuMFY86Xr39Bj0Kqd6wRc1fji4VBn5DN35d n9/xF7rowh8Y0ybGzg== X-UI-Sender-Class: 724b4f7f-cbec-4199-ad4e-598c01a50d3a Received: from x61.lan ([78.142.103.142]) by mail.gmx.net (mrgmx005 [212.227.17.190]) with ESMTPSA (Nemesis) id 1N17Ye-1tf97R2Kdu-00xVjX for ; Sat, 30 Nov 2024 20:44:19 +0100 From: "Dr. Nikolaus Klepp" To: questions@freebsd.org Subject: Re: shell script for removing unprintable characters in file names Date: Sat, 30 Nov 2024 20:44:18 +0100 User-Agent: KMail/1.9.10 References: <95966dac-9d93-401f-9948-5fcb224a1e1f@nethead.se> <86r06s1q8n.fsf@ltc.des.dev> In-Reply-To: <86r06s1q8n.fsf@ltc.des.dev> X-KMail-QuotePrefix: > List-Id: User questions List-Archive: https://lists.freebsd.org/archives/freebsd-questions List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: freebsd-questions@freebsd.org Sender: owner-freebsd-questions@FreeBSD.org MIME-Version: 1.0 Content-Type: Text/Plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Message-Id: <202411302044.18837.dr.klepp@gmx.at> X-Provags-ID: V03:K1:7bwkEFyEQveT3X/keSxj+AO5JVr+KyrlbU/ZXpOxDgHd4VuRAgQ j5yqDh37o/12rclCdDuDMB+P4puuB7fcr+elodG4BwJsmrrL6i9iAPU5VXMY4CWv2Hlubrs hNt24ykGDiun3fGsvo+EtiHl+LhUYMxRX62aPGf+970neZzKjy+HZ7J0GKhvmLFFiVYVRlJ Irp8yKr4vHh6vNabB4XqQ== X-Spam-Flag: NO UI-OutboundReport: notjunk:1;M01:P0:d3jKZu3iZqQ=;ps+tm/UivYKzM1B35FxOGgy0G2X o8WObZv6qnm3a2g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RJDnJqU 4833yaA7oZN2ByezNZgHuP53gngVWp X-Spamd-Result: default: False [-2.00 / 15.00]; FROM_NAME_HAS_TITLE(1.00)[dr]; MID_CONTAINS_FROM(1.00)[]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; NEURAL_HAM_LONG(-1.00)[-1.000]; NEURAL_HAM_SHORT(-1.00)[-1.000]; DMARC_POLICY_ALLOW(-0.50)[gmx.at,quarantine]; R_DKIM_ALLOW(-0.20)[gmx.at:s=s31663417]; R_SPF_ALLOW(-0.20)[+a:mout.gmx.net]; MIME_GOOD(-0.10)[text/plain]; ONCE_RECEIVED(0.10)[]; RCVD_IN_DNSWL_LOW(-0.10)[212.227.15.19:from]; DKIM_TRACE(0.00)[gmx.at:+]; RCVD_TLS_ALL(0.00)[]; MIME_TRACE(0.00)[0:+]; RCPT_COUNT_ONE(0.00)[1]; ARC_NA(0.00)[]; TO_MATCH_ENVRCPT_ALL(0.00)[]; FROM_HAS_DN(0.00)[]; RCVD_COUNT_ONE(0.00)[1]; PREVIOUSLY_DELIVERED(0.00)[questions@freebsd.org]; TO_DN_NONE(0.00)[]; FROM_EQ_ENVFROM(0.00)[]; FREEMAIL_FROM(0.00)[gmx.at]; MLMMJ_DEST(0.00)[questions@freebsd.org]; RCVD_VIA_SMTP_AUTH(0.00)[]; RWL_MAILSPIKE_POSSIBLE(0.00)[212.227.15.19:from]; ASN(0.00)[asn:8560, ipnet:212.227.0.0/16, country:DE]; FREEMAIL_ENVFROM(0.00)[gmx.at] X-Rspamd-Queue-Id: 4Y10qT4nCKz4PJ6 X-Spamd-Bar: - Anno domini 2024 Sat, 30 Nov 20:22:16 +0100 Dag-Erling Sm=C3=B8rgrav scripsit: > Per olof Ljungmark writes: > > I am tasked with recovering hundreds or more files created with > > unknown OSs and have unknown characters in the name, replaced with a > > '?'. > > > > Like file?nam?.??? > > > > Please, if you have such a script can you post or email it? Replacing > > the unknown character with anything, like '-' or '_' using whatever > > shell, sh, bash or csh. >=20 > Look for convtools on github. There's "detox", too. Nik >=20 > DES =2D-=20 Please do not email me anything that you are not comfortable also sharing w= ith the NSA, CIA ...