[Date Prev][Date Next][Thread Prev][Thread Next] [Search] [Date Index] [Thread Index]

Re: [FWP] Re: Neat or horrid?



2000-06-01-14:54:57 David L. Nicol:
> It would be nice if find had an option to specify what the delimiter is,
> or an option to specify that the delimiter is going to be \0 instead of \n.

You mean, like e.g.

	find ... -print0 | perl -0 -lne unlink

just for instance? GNU find supports -print0. And GNU cpio supports
a companion "-0" option.

> I don't think \0 can be in a file name.  Can it?

Nope. \0 and / are the only characters that purely cannot ever occur
in any Unix filename.

Apropos of that, anybody else fondly remember coping with the
consequences when Macintosh NFS client implementation (like the
Cayman Systems Gatorbox) interacted with buggy NFS servers to allow
creating filenames with "/" in them? Thank goodness for the ability
to unlink a directory:-).

-Bennett

PGP signature