Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 20 Sep 2002 09:53:32 +0200 (CEST)
From:      Oliver Fromme <olli@secnetix.de>
To:        freebsd-questions@FreeBSD.ORG
Subject:   Re: find case-insensitive challenge
Message-ID:  <200209200753.g8K7rWik094255@lurza.secnetix.de>
In-Reply-To: <20020920015829.GA85636@adelaide.edu.au>

next in thread | previous in thread | raw e-mail | index | archive | help
Tim Peters <tim@lost.net.au> 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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200209200753.g8K7rWik094255>