aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorDenis Vlasenko <vda.linux@googlemail.com>2007-02-25 02:38:54 +0000
committerDenis Vlasenko <vda.linux@googlemail.com>2007-02-25 02:38:54 +0000
commitf8ea0f3a66559a00c41fd7877bdc241973a60f8c (patch)
tree41778c9565c90e04f8d8a8c67caf8ae7b7eaf0d0 /include
parent385304d449c25948315eb8872879d49bb2c65586 (diff)
downloadbusybox-f8ea0f3a66559a00c41fd7877bdc241973a60f8c.tar.gz
grep: "implement" -a and -I by ignoring them
Diffstat (limited to 'include')
-rw-r--r--include/usage.h46
1 files changed, 24 insertions, 22 deletions
diff --git a/include/usage.h b/include/usage.h
index f9d3de8c6..52f972038 100644
--- a/include/usage.h
+++ b/include/usage.h
@@ -1073,36 +1073,38 @@
" -H login_host Log login_host into the utmp file as the hostname"
#define grep_trivial_usage \
- "[-rihHnqvso" \
+ "[-HhrilLnqvso" \
+ USE_DESKTOP("w") \
+ "eF" \
USE_FEATURE_GREP_EGREP_ALIAS("E") \
USE_FEATURE_GREP_CONTEXT("ABC") \
"] PATTERN [FILEs...]"
#define grep_full_usage \
"Search for PATTERN in each FILE or standard input" \
- "\n\nOptions:\n" \
- " -H Prefix output lines with filename where match was found\n" \
- " -h Suppress the prefixing filename on output\n" \
- " -r Recurse subdirectories\n" \
- " -i Ignore case distinctions\n" \
- " -l List names of files that match\n" \
- " -L List names of files that do not match\n" \
- " -n Print line number with output lines\n" \
- " -q Be quiet. Returns 0 if PATTERN was found, 1 otherwise\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" \
- " -e PATTERN is a regular expression\n" \
- " -F PATTERN is a set of newline-separated strings" \
+ "\n\nOptions:" \
+ "\n -H Prefix output lines with filename where match was found" \
+ "\n -h Suppress the prefixing filename on output" \
+ "\n -r Recurse subdirectories" \
+ "\n -i Ignore case distinctions" \
+ "\n -l List names of files that match" \
+ "\n -L List names of files that do not match" \
+ "\n -n Print line number with output lines" \
+ "\n -q Be quiet. Returns 0 if PATTERN was found, 1 otherwise" \
+ "\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" \
+ 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") \
USE_FEATURE_GREP_CONTEXT( \
- "\n -A Print NUM lines of trailing context") \
- USE_FEATURE_GREP_CONTEXT( \
- "\n -B Print NUM lines of leading context") \
- USE_FEATURE_GREP_CONTEXT( \
- "\n -C Print NUM lines of output context")
+ "\n -A Print NUM lines of trailing context" \
+ "\n -B Print NUM lines of leading context" \
+ "\n -C Print NUM lines of output context") \
#define grep_example_usage \
"$ grep root /etc/passwd\n" \