From bea61f704dfb59f1b8b71792e3d57d321e53d74e Mon Sep 17 00:00:00 2001 From: Rob Landley Date: Sat, 14 Oct 2023 04:58:26 -0500 Subject: [PATCH] Tweak help text. --- toys/posix/grep.c | 14 +++++--------- 1 file changed, 5 insertions(+), 9 deletions(-) diff --git a/toys/posix/grep.c b/toys/posix/grep.c index 1c0eed78..7309e887 100644 --- a/toys/posix/grep.c +++ b/toys/posix/grep.c @@ -15,22 +15,18 @@ config GREP bool "grep" default y help - usage: grep [-EFrivwcloqsHbhn] [-ABC NUM] [-m MAX] [-e REGEX]... [-MS PATTERN]... [-f REGFILE] [FILE]... + usage: grep [-EFrivwcloqsHbhn] [-ABC NUM] [-m MAX] [-e REGEX]... [-MS PATTERN]... [-f REGFILE]... [FILE]... Show lines matching regular expressions. If no -e, first argument is regular expression to match. With no files (or "-" filename) read stdin. Returns 0 if matched, 1 if no match found, 2 for command errors. - -e Regex to match. (May be repeated.) - -f File listing regular expressions to match. + -e Regex(es) to match. -f File(s) of regexes to match (1 per line). file search: - -r Recurse into subdirectories (defaults FILE to ".") - -R Recurse into subdirectories and symlinks to directories - -M Match filename pattern (--include) - -S Skip filename pattern (--exclude) - --exclude-dir=PATTERN Skip directory pattern - -I Ignore binary files + -r Recurse into subdirs -R Recurse following symlinks + -M Match files (--include) -S Skip files (--exclude) + -I Ignore binary files --exclude-dir=PATTERN Skip directories match type: -A Show NUM lines after -B Show NUM lines before match -- 2.39.2