help-bash
[Top][All Lists]
Advanced

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

Re: [Help-bash] Readig multiple null-separated values


From: David
Subject: Re: [Help-bash] Readig multiple null-separated values
Date: Mon, 29 Jul 2019 18:01:53 +1000

On Sat, 27 Jul 2019 at 23:56, František Kučera <address@hidden> wrote:
>
> in my Bash pipelines I sometimes pass data separated by null byte \0 and
> it is not only lists (like in find -print0) but
> matrices/tables/relations with fixed number of columns/attributes. The
> \0 is used to both separate values and records. The advantage is that
> the only forbidden character in values is the \0 and there are no
> collisions with text separators like ,;:\t\n etc. and no need for
> escaping or quoting. So it is a safe and simple way to pass structured
> data between processes.

When you use the word "data" above, do you mean ASCII text,
or something else?

If ASCII text, are you aware of the ASCII delimiter characters?
See https://en.wikipedia.org/wiki/Delimiter#ASCII_delimited_text



reply via email to

[Prev in Thread] Current Thread [Next in Thread]