aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorB. Watson <urchlay@slackware.uk>2025-02-09 22:28:53 -0500
committerB. Watson <urchlay@slackware.uk>2025-02-09 22:28:53 -0500
commit4aa278653617375ab977c4848f29964e7ad2b8af (patch)
tree604a0805c44186763191ae15206bf0f7ebb7fce7
parent7948fdd3e5add75d64465a1f48527eeb98a1d152 (diff)
downloadmisc-scripts-4aa278653617375ab977c4848f29964e7ad2b8af.tar.gz
bsgrep: document grep options.
-rwxr-xr-xbsgrep58
1 files changed, 58 insertions, 0 deletions
diff --git a/bsgrep b/bsgrep
index 6dd5c43..19ca3aa 100755
--- a/bsgrep
+++ b/bsgrep
@@ -452,3 +452,61 @@ under the WTFPL: Do WTF you want with this.
B<grep>(1), B<perl>(1)
=cut
+
+__END__
+
+implemented:
+ --help
+ -V, --version
+ -F, --fixed-strings
+ -e PATTERNS, --regexp=PATTERNS
+ -i, --ignore-case
+ -v, --invert-match
+ -q, --quiet, --silent
+ -s, --no-messages
+ -n, --line-number
+ -z, --null-data
+ -r, --recursive
+ -l, --files-with-matches
+
+todo:
+ -f FILE, --file=FILE
+ -y Obsolete synonym for -i.
+ -c, --count
+ -R, --dereference-recursive
+ -L, --files-without-match
+ -Z, --null
+ -A NUM, --after-context=NUM
+ -B NUM, --before-context=NUM
+ -C NUM, -NUM, --context=NUM
+ -H, --with-filename
+ -h, --no-filename
+ -w, --word-regexp
+ -x, --line-regexp
+
+do not implement:
+ -E, --extended-regexp
+ -G, --basic-regexp
+ -P, --perl-regexp
+ --no-ignore-case
+
+undecided:
+ --color[=WHEN], --colour[=WHEN]
+ -m NUM, --max-count=NUM
+ -o, --only-matching
+ -b, --byte-offset
+ --label=LABEL
+ -T, --initial-tab
+ --group-separator=SEP
+ --no-group-separator
+ -a, --text
+ --binary-files=TYPE
+ -D ACTION, --devices=ACTION
+ -d ACTION, --directories=ACTION
+ --exclude=GLOB
+ --exclude-from=FILE
+ --exclude-dir=GLOB
+ -I
+ --include=GLOB
+ --line-buffered
+ -U, --binary