aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorDenis Vlasenko <vda.linux@googlemail.com>2007-07-15 12:39:08 +0000
committerDenis Vlasenko <vda.linux@googlemail.com>2007-07-15 12:39:08 +0000
commit4652daace9b2eed7ddc67d1698e43d79bedeed9f (patch)
tree77bc594937966ecd788092cc8cf3321f9bd903e7 /include
parent8d5aa870a66b2196d2b756813cebb25c22b128ed (diff)
downloadbusybox-w32-4652daace9b2eed7ddc67d1698e43d79bedeed9f.tar.gz
busybox-w32-4652daace9b2eed7ddc67d1698e43d79bedeed9f.tar.bz2
busybox-w32-4652daace9b2eed7ddc67d1698e43d79bedeed9f.zip
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 68325046f..bd9cb9908 100644
--- a/include/usage.h
+++ b/include/usage.h
@@ -1164,14 +1164,15 @@
1164 "\n -v Select non-matching lines" \ 1164 "\n -v Select non-matching lines" \
1165 "\n -s Suppress file open/read error messages" \ 1165 "\n -s Suppress file open/read error messages" \
1166 "\n -c Only print count of matching lines" \ 1166 "\n -c Only print count of matching lines" \
1167 "\n -f Read PATTERN from file" \
1168 "\n -o Show only the part of a line that matches PATTERN" \ 1167 "\n -o Show only the part of a line that matches PATTERN" \
1168 "\n -m MAX Match up to MAX times per file" \
1169 USE_DESKTOP( \ 1169 USE_DESKTOP( \
1170 "\n -w Match whole words only") \ 1170 "\n -w Match whole words only") \
1171 "\n -e PATTERN is a regular expression" \
1172 "\n -F PATTERN is a set of newline-separated strings" \ 1171 "\n -F PATTERN is a set of newline-separated strings" \
1173 USE_FEATURE_GREP_EGREP_ALIAS( \ 1172 USE_FEATURE_GREP_EGREP_ALIAS( \
1174 "\n -E PATTERN is an extended regular expression") \ 1173 "\n -E PATTERN is an extended regular expression") \
1174 "\n -e PTRN Pattern to match" \
1175 "\n -f FILE Read pattern from file" \
1175 USE_FEATURE_GREP_CONTEXT( \ 1176 USE_FEATURE_GREP_CONTEXT( \
1176 "\n -A Print NUM lines of trailing context" \ 1177 "\n -A Print NUM lines of trailing context" \
1177 "\n -B Print NUM lines of leading context" \ 1178 "\n -B Print NUM lines of leading context" \