aboutsummaryrefslogtreecommitdiff
path: root/usr.bin/grep/grep.1
diff options
context:
space:
mode:
authorEd Maste <emaste@FreeBSD.org>2017-04-17 13:14:18 +0000
committerEd Maste <emaste@FreeBSD.org>2017-04-17 13:14:18 +0000
commit5ee1ea02fd132b2b83dcdbdf8fa987fb5e72c65f (patch)
treef0b00fdacccd2ecd652b92c391fed158c331fa83 /usr.bin/grep/grep.1
parent46f48ee5193f1499c251d33c78ef7f6908358c23 (diff)
downloadsrc-5ee1ea02fd132b2b83dcdbdf8fa987fb5e72c65f.tar.gz
src-5ee1ea02fd132b2b83dcdbdf8fa987fb5e72c65f.zip
bsdgrep: add -z/--null-data support
-z treats input and output data as sequences of lines terminated by a zero byte instead of a newline. This brings it more in line with GNU grep and brings us closer to passing the current tests with BSD grep. Submitted by: Kyle Evans <kevans91 at ksu.edu> Reviewed by: cem Relnotes: Yes Differential Revision: https://reviews.freebsd.org/D10101
Notes
Notes: svn path=/head/; revision=317049
Diffstat (limited to 'usr.bin/grep/grep.1')
-rw-r--r--usr.bin/grep/grep.19
1 files changed, 6 insertions, 3 deletions
diff --git a/usr.bin/grep/grep.1 b/usr.bin/grep/grep.1
index f06cfaa6cf88..f790ce1770a3 100644
--- a/usr.bin/grep/grep.1
+++ b/usr.bin/grep/grep.1
@@ -30,7 +30,7 @@
.\"
.\" @(#)grep.1 8.3 (Berkeley) 4/18/94
.\"
-.Dd July 28, 2010
+.Dd April 17, 2017
.Dt GREP 1
.Os
.Sh NAME
@@ -40,7 +40,7 @@
.Sh SYNOPSIS
.Nm grep
.Bk -words
-.Op Fl abcdDEFGHhIiJLlmnOopqRSsUVvwxZ
+.Op Fl abcdDEFGHhIiJLlmnOopqRSsUVvwxZz
.Op Fl A Ar num
.Op Fl B Ar num
.Op Fl C Ns Op Ar num
@@ -378,7 +378,10 @@ expression are considered to be matching lines.
Equivalent to
.Fl i .
Obsoleted.
-.It Fl Z , Fl z , Fl Fl decompress
+.It Fl z , Fl Fl null-data
+Treat input and output data as sequences of lines terminated by a
+zero-byte instead of a newline.
+.It Fl Z , Fl Fl decompress
Force
.Nm grep
to behave as