From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on inbox.vuxu.org X-Spam-Level: X-Spam-Status: No, score=0.0 required=5.0 tests=DKIM_SIGNED,DKIM_VALID autolearn=ham autolearn_force=no version=3.4.4 Received: (qmail 16434 invoked from network); 12 Aug 2023 06:47:56 -0000 Received: from 9front.inri.net (168.235.81.73) by inbox.vuxu.org with ESMTPUTF8; 12 Aug 2023 06:47:56 -0000 Received: from pb-smtp21.pobox.com ([173.228.157.53]) by 9front; Sat Aug 12 02:44:43 -0400 2023 Received: from pb-smtp21.pobox.com (unknown [127.0.0.1]) by pb-smtp21.pobox.com (Postfix) with ESMTP id B25C429D9A for <9front@9front.org>; Sat, 12 Aug 2023 02:44:42 -0400 (EDT) (envelope-from unobe@cpan.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed; d=pobox.com; h=message-id :to:subject:date:from:in-reply-to:mime-version:content-type :content-transfer-encoding; s=sasl; bh=Vpo4ftj3BJM8+nZkzk15CiV7X MlqJmRNjXhcEkFCvYk=; b=XOBK4ZCFZsoA29rHcaVu7ogoR3e8YgkmnJZb1sxba jc/jKA8sl5O+fZ6S29PLxdmc+O/9h+RLMOOuZFqoJFxF4Tz4md7UDyCmOXTLJro5 iuRSPh58ZQIA9L5HZd42J2wXsXOflDS6t20jcKaM7GODj3LKujV86aWdo9frjoX5 wQ= Received: from pb-smtp21.sea.icgroup.com (unknown [127.0.0.1]) by pb-smtp21.pobox.com (Postfix) with ESMTP id ABEA429D99 for <9front@9front.org>; Sat, 12 Aug 2023 02:44:42 -0400 (EDT) (envelope-from unobe@cpan.org) Received: from strider.localdomain (unknown [97.131.109.8]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by pb-smtp21.pobox.com (Postfix) with ESMTPSA id EA39B29D95 for <9front@9front.org>; Sat, 12 Aug 2023 02:44:38 -0400 (EDT) (envelope-from unobe@cpan.org) Message-ID: To: 9front@9front.org Date: Fri, 11 Aug 2023 23:44:35 -0700 From: unobe@cpan.org In-Reply-To: <14FD1A161954B653928B89F61F9F7510@eigenstate.org> MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit X-Pobox-Relay-ID: B593ECA2-38DB-11EE-AC0A-B31D44D1D7AA-09620299!pb-smtp21.pobox.com List-ID: <9front.9front.org> List-Help: X-Glyph: ➈ X-Bullshit: virtualized browser template-based rails Subject: Re: [9front] PATCH walk(1) to (optionally) quote name and path Reply-To: 9front@9front.org Precedence: bulk Quoth ori@eigenstate.org: > Quoth Romano : > > I'm working with files on a backup drive that have spaces and > > quotation marks in their names, using walk(1). I can pipe to sed > > s/''''/''''''''''/g and do similarly for other characters requiring > > escaping for rc(1), but figured patching walk(1) would be better. > > generally no objections, though it's usually relatively easy to > structure scripts such that there's relatively little that is > interpreted by rc; is this for interactive use? I realized I didn't reply to your question, sorry. No, not directly. I am trying to consolidate some files spread across different paths to one directory, so first doing: walk -f -eP | grep 'pattern' > /tmp/files_of_interest.txt Then after reviewing and deleting further, I was going to do something like: clone `{cat /tmp/files_of_interest.txt} /path/ Are you thinking I'd do something like set the ifs manually? ifs=' ' clone `{cat /tmp/files_of_interest.txt} /path