Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: (0) not working ?



hello Perry,

> I’m very new here so take what I say with caution but why
> did you put the backslash before the 0?

if you use xxd:

    echo -n 0 $'\0'|xxd

you can see that 0 is the symbol 0x30 (48th of the ascii table)
when \0 is 00.

\0 is non-sense in a legit text stream so it can be used as
a separator instead of all those separators that can exist in
text ( "\n", ",", ":" " ", "\t").

see xargs -0, find -print0, ...

regards
marc




Messages sorted by: Reverse Date, Date, Thread, Author