summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorDenis Vlasenko2007-07-15 12:39:08 +0000
committerDenis Vlasenko2007-07-15 12:39:08 +0000
commit4652daace9b2eed7ddc67d1698e43d79bedeed9f (patch)
tree77bc594937966ecd788092cc8cf3321f9bd903e7 /include
parent8d5aa870a66b2196d2b756813cebb25c22b128ed (diff)
downloadbusybox-4652daace9b2eed7ddc67d1698e43d79bedeed9f.zip
busybox-4652daace9b2eed7ddc67d1698e43d79bedeed9f.tar.gz
grep: implement -m MAX_MATCHES; fix help text
grep_file 771 822 +51 packed_usage 22573 22610 +37 .rodata 128058 128090 +32 grep_main 842 853 +11 max_matches - 4 +4 ------------------------------------------------------------------------------ (add/remove: 1/0 grow/shrink: 4/0 up/down: 135/0) Total: 135 bytes
Diffstat (limited to 'include')
-rw-r--r--include/usage.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/include/usage.h b/include/usage.h
index 6832504..bd9cb99 100644
--- a/include/usage.h
+++ b/include/usage.h
@@ -1164,14 +1164,15 @@
"\n -v Select non-matching lines" \
"\n -s Suppress file open/read error messages" \
"\n -c Only print count of matching lines" \
- "\n -f Read PATTERN from file" \
"\n -o Show only the part of a line that matches PATTERN" \
+ "\n -m MAX Match up to MAX times per file" \
USE_DESKTOP( \
"\n -w Match whole words only") \
- "\n -e PATTERN is a regular expression" \
"\n -F PATTERN is a set of newline-separated strings" \
USE_FEATURE_GREP_EGREP_ALIAS( \
"\n -E PATTERN is an extended regular expression") \
+ "\n -e PTRN Pattern to match" \
+ "\n -f FILE Read pattern from file" \
USE_FEATURE_GREP_CONTEXT( \
"\n -A Print NUM lines of trailing context" \
"\n -B Print NUM lines of leading context" \