aboutsummaryrefslogtreecommitdiff
path: root/toys
diff options
context:
space:
mode:
authorElliott Hughes <enh@google.com>2019-02-24 09:02:07 -0800
committerRob Landley <rob@landley.net>2019-02-24 12:08:25 -0600
commit2d17d2762b0b05295917b9f8e451e5f7783a2da1 (patch)
tree2a7ff5b9de58686a17983e68a2671841c5748f6c /toys
parente2191095c3c60b10908d36f8ef081f63e72500a9 (diff)
downloadtoybox-2d17d2762b0b05295917b9f8e451e5f7783a2da1.tar.gz
grep: add missing long synonyms used in AOSP.
Diffstat (limited to 'toys')
-rw-r--r--toys/posix/grep.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/toys/posix/grep.c b/toys/posix/grep.c
index d57e9221..c9a30882 100644
--- a/toys/posix/grep.c
+++ b/toys/posix/grep.c
@@ -10,7 +10,7 @@
* echo hello | grep -f </dev/null
*
-USE_GREP(NEWTOY(grep, "(color):;S(exclude)*M(include)*ZzEFHIabhinorsvwclq(quiet)(silent)e*f*C#B#A#m#x[!wx][!EFw]", TOYFLAG_BIN))
+USE_GREP(NEWTOY(grep, "(color):;S(exclude)*M(include)*ZzEFHIab(byte-offset)h(no-filename)ino(only-matching)rsvwcl(files-with-matches)q(quiet)(silent)e*f*C#B#A#m#x[!wx][!EFw]", TOYFLAG_BIN))
USE_EGREP(OLDTOY(egrep, grep, TOYFLAG_BIN))
USE_FGREP(OLDTOY(fgrep, grep, TOYFLAG_BIN))
@@ -42,7 +42,7 @@ config GREP
-x whole line -z input NUL terminated
display modes: (default: matched line)
- -c count of matching lines -l show matching filenames
+ -c count of matching lines -l show only matching filenames
-o only matching part -q quiet (errors only)
-s silent (no error msg) -Z output NUL terminated