grep command for MoonX.
moonx cli/grep -n 'error' app.log
moonx cli/grep -E 'warn|error' app.log
moonx cli/grep -F 'literal.text' input.txt| Option | Description |
|---|---|
| -F, --fixed-strings | Match literal strings. |
| -E, --extended-regexp | Use extended regular expressions. |
| -o, --only-matching | Print each nonempty matched part separately. |
| -i, --ignore-case | Ignore ASCII case differences. |
| -n, --line-number | Print record numbers. |
| -r, --recursive | Recurse without following links. |
| -C VALUE, --context VALUE | Print this many records before and after a match. |
| --help | Show help. |
| --version | Show the version. |