From nobody Sat Nov 30 19:22:16 2024 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 4Y10L21nvcz5fWrc for ; Sat, 30 Nov 2024 19:22:18 +0000 (UTC) (envelope-from des@freebsd.org) Received: from smtp.freebsd.org (smtp.freebsd.org [96.47.72.83]) (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-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "smtp.freebsd.org", Issuer "R10" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4Y10L20nwyz4KFS; Sat, 30 Nov 2024 19:22:18 +0000 (UTC) (envelope-from des@freebsd.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1732994538; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=5QXPZkViiFKxGXLX80hYhF36gcQCQKb/gGd1hqR7eUU=; b=EOddDvjdh2X6IM/08uKIaFzkpvHFwQ5G705j377n1/gRS4vyeYJ5Rt+YtX55R1zAbanCJB qY64kKHOvkjDCGsDq57alHj3jw+iwqWd7YqQuzclxCg2KbeaXBx2dBC+39wd39kom097ud tBJi9SqhUqKpVBatCfe03yg3+ZmoLBhXN5LHhlwxdlpZo85Kcvm5NULWKhfROJrevE7TMs bpUlfLxjoVTNOBgaXusFfjzEWEXmKhIX10XX0WGx7Bc/I1+AymRs06+WqvLJJulvAcYRRW eqtGdzS5/4aiMhWzK77gk/htmv823yzBbl7nuITQZ5zxGkk+7Xn3uDKdJ1rmwQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1732994538; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=5QXPZkViiFKxGXLX80hYhF36gcQCQKb/gGd1hqR7eUU=; b=GcbhmQgx9lTrHLibVEVYACXY0IeNh8lrptU/EN832tkP1CeQrCKk6b109Y9ONXxfUj93bD uixN0n3PSXxgUCOET3HKyePzs1nv4HooN3dKCFuulxBZpxtkRAXM1Q6SQX+Xh6IKL1+r7N L/eA0/DLUkUxo+4aE7ODZUq2Gbtw1GSGznCHyDt3bdqKsOdpxKyejQcoMp53iQlgQg/jnX Ih52OSoLBwlTmccWRh+3UEcTgBBKdpNqmOz3LHq49Gd0VslLfvYSEZlNUww8aERz0ENdhB okFNKe9ypE5iyMxF25bNS9zvvfmDIpyKK4T+EnZ8DVKhAEF0TcpTr0Ke3Yxytw== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1732994538; a=rsa-sha256; cv=none; b=Ssq8eDLJxBv31aqrhVqgQqAjcsVhbBHeFOPY6EBXD/Bm4abhAjMqBvaGL9w88nJ0tLrzKA L0MY9lCReDNM3LA80fiYpbzE0z6y0PJV5wG6c7URYlc60M8MAQENctZ42Z5P/BX9WPL3Ad NXK75gMPNVFUJA0FlVTaRS8C1YP4sxeVd0bb7v3qQZOJhHgIIWvIfwzPhF4ZKme7e/ptvv qCaBEWJ0hmLpnkLI2P8tsiLHdYAJEYcHLATEFvxFlfrpkvpLMImYZpNAHvwvf+HYIyCfrj D3UFoEFrTPgewU36PKEJm1vFxzpiCMq8HQJj+S9LEe6yFoLa81mPO5HeaKp6QQ== Received: from ltc.des.dev (88-177-82-251.subs.proxad.net [88.177.82.251]) (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) (Authenticated sender: des) by smtp.freebsd.org (Postfix) with ESMTPSA id 4Y10L16xyPz19ft; Sat, 30 Nov 2024 19:22:17 +0000 (UTC) (envelope-from des@freebsd.org) Received: by ltc.des.dev (Postfix, from userid 1001) id 643C46069E; Sat, 30 Nov 2024 20:22:16 +0100 (CET) From: =?utf-8?Q?Dag-Erling_Sm=C3=B8rgrav?= To: Per olof Ljungmark Cc: FreeBSD questions Subject: Re: shell script for removing unprintable characters in file names In-Reply-To: <95966dac-9d93-401f-9948-5fcb224a1e1f@nethead.se> (Per olof Ljungmark's message of "Sat, 30 Nov 2024 16:33:39 +0100") References: <95966dac-9d93-401f-9948-5fcb224a1e1f@nethead.se> User-Agent: Gnus/5.13 (Gnus v5.13) Date: Sat, 30 Nov 2024 20:22:16 +0100 Message-ID: <86r06s1q8n.fsf@ltc.des.dev> 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 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. Look for convtools on github. DES --=20 Dag-Erling Sm=C3=B8rgrav - des@FreeBSD.org