Index: doc/grep.1 =================================================================== RCS file: /cvs/grep/doc/grep.1,v retrieving revision 1.23 diff -u -u -r1.23 grep.1 --- doc/grep.1 22 Jan 2002 13:20:04 -0000 1.23 +++ doc/grep.1 17 Feb 2003 20:23:40 -0000 @@ -425,6 +425,16 @@ .B "xargs \-0" to process arbitrary file names, even those that contain newline characters. +.TP +.BR \-z ", " \-\^\-null-data +Treat the input as a set of lines, each terminated by a zero byte +(the \s-1ASCII\s0 +.B NUL +character) instead of a newline. Like the +.BR \-Z " or " \-\^\-null +option, this option can be used with commands like +.B "sort \-z" +to process arbitrary file names. .SH "REGULAR EXPRESSIONS" .PP A regular expression is a pattern that describes a set of strings. Index: src/grep.c =================================================================== RCS file: /cvs/grep/src/grep.c,v retrieving revision 1.81 diff -u -u -r1.81 grep.c --- src/grep.c 18 Jan 2003 16:02:30 -0000 1.81 +++ src/grep.c 17 Feb 2003 20:23:45 -0000 @@ -1138,7 +1138,8 @@ -L, --files-without-match only print FILE names containing no match\n\ -l, --files-with-matches only print FILE names containing matches\n\ -c, --count only print a count of matching lines per FILE\n\ - -Z, --null print 0 byte after FILE name\n")); + -Z, --null print 0 byte after FILE name\n\ + -z, --null-data input lines are terminated with NUL, not newline\n")); printf (_("\ \n\ Context control:\n\