grep command for MoonX.
moonx cli/grep@0.3.3 [-EFGivnclLqHhxwrRbszo] [-A NUM] [-B NUM] [-C NUM] [--include=GLOB] [--exclude=GLOB] [--binary-files=TYPE] [-e PATTERN] [-f FILE] [PATTERN] [FILE...]| Option | Description |
|---|---|
| -E / -F / -G | Extended regex / fixed strings / basic regex (default). |
| -e PATTERN / -f FILE | Add patterns directly / from a file. |
| -i / -v / -x / -w | Ignore ASCII case / invert / whole record / whole word. |
| -n / -b / -o | Show record numbers / byte offsets / nonempty matches. |
| -c / -l / -L / -q | Counts / matching filenames / nonmatching filenames / status only. |
| -H / -h | Always / never show filenames. |
| -A N / -B N / -C N | After / before / surrounding context. |
| -r / -R | Recurse without following links. |
| --include=GLOB / --exclude=GLOB | Filter recursive basenames using * and ?. |
| -a / --binary-files=TYPE | Binary policy: binary, text or without-match. |
| -s | Suppress file-read diagnostics. |
| -z | Use NUL-delimited records. |
| --help / --version | Show help / package version. |
moonx cli/grep@0.3.3 -n 'TODO' notes.txt
moonx cli/grep@0.3.3 -r -F -e TODO -e FIXME src