In FreeBSD, -Z is reserved for zgrep(1), and only

a long version of the --null option is supported.

PR:		gnu/30644
This commit is contained in:
Ruslan Ermilov 2001-09-19 07:22:30 +00:00
parent e5a860ebb4
commit 096f9ef53b

View file

@ -324,12 +324,12 @@ Select only those matches that exactly match the whole line.
Obsolete synonym for
.BR \-i .
.TP
.BR \-Z ", " \-\^\-null
.B \-\^\-null
Output a zero byte (the \s-1ASCII\s0
.B NUL
character) instead of the character that normally follows a file name.
For example,
.B "grep \-lZ"
.B "grep \-l \-\^\-null"
outputs a zero byte after each file name instead of the usual newline.
This option makes the output unambiguous, even in the presence of file
names containing unusual characters like newlines. This option can be