From owner-freebsd-questions Fri Sep 20 0:53:41 2002 Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.FreeBSD.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 6DEFE37B401 for ; Fri, 20 Sep 2002 00:53:40 -0700 (PDT) Received: from lurza.secnetix.de (lurza.secnetix.de [212.66.1.130]) by mx1.FreeBSD.org (Postfix) with ESMTP id 9BE3143E65 for ; Fri, 20 Sep 2002 00:53:39 -0700 (PDT) (envelope-from olli@lurza.secnetix.de) Received: from lurza.secnetix.de (localhost [IPv6:::1]) by lurza.secnetix.de (8.12.5/8.12.5) with ESMTP id g8K7rWmC094256 for ; Fri, 20 Sep 2002 09:53:33 +0200 (CEST) (envelope-from oliver.fromme@secnetix.de) Received: (from olli@localhost) by lurza.secnetix.de (8.12.5/8.12.5/Submit) id g8K7rWik094255; Fri, 20 Sep 2002 09:53:32 +0200 (CEST) Date: Fri, 20 Sep 2002 09:53:32 +0200 (CEST) Message-Id: <200209200753.g8K7rWik094255@lurza.secnetix.de> From: Oliver Fromme To: freebsd-questions@FreeBSD.ORG Reply-To: freebsd-questions@FreeBSD.ORG Subject: Re: find case-insensitive challenge In-Reply-To: <20020920015829.GA85636@adelaide.edu.au> X-Newsgroups: list.freebsd-questions User-Agent: tin/1.5.4-20000523 ("1959") (UNIX) (FreeBSD/4.6-STABLE (i386)) MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Tim Peters wrote: > FYI, find and xargs can work with weird filenames (as long as they > don't contain a \0) with these kind of options: > > find . -print0 | xargs -0 command UNIX filenames cannot contain '\0' bytes, so you're safe. (There are only two characters disallowed in UNIX filenames: the path separator '/' and zero-bytes '\0'. Everything else is allowed, including backspaces, newlines and all other kinds of nasty control codes. find -print0 | xargs -0 will handle all of them fine.) Regards Oliver -- Oliver Fromme, secnetix GmbH & Co KG, Oettingenstr. 2, 80538 München Any opinions expressed in this message may be personal to the author and may not necessarily reflect the opinions of secnetix in any way. "All that we see or seem is just a dream within a dream" (E. A. Poe) To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message