Skip to content

Commit c54f08d

Browse files
committed
Update readme
1 parent 4de21a2 commit c54f08d

File tree

1 file changed

+14
-5
lines changed

1 file changed

+14
-5
lines changed

README.md

Lines changed: 14 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -18,11 +18,15 @@ Usage:
1818
kubectl-grep [flags]
1919

2020
Flags:
21-
-n, --clean Cleanup generate fields
22-
-N, --clean-status Cleanup generate fields, including status
23-
-h, --help help for kubectl-grep
24-
-s, --summary Summarize output
25-
-L, --unlist Split Kubernetes lists
21+
-n, --clean Cleanup generate fields
22+
-N, --clean-status Cleanup generate fields, including status
23+
-h, --help help for kubectl-grep
24+
-i, --insensitive-regex Invert regex match
25+
-v, --invert-regex Invert regex match
26+
-r, --regex string Raw regex to match against
27+
-s, --summary Summarize output
28+
-L, --unlist Split Kubernetes lists
29+
2630
```
2731

2832
## Examples
@@ -44,3 +48,8 @@ Flags:
4448
```shell
4549
< some-config.yaml | kubectl grep 'Pod/*/dev' -N
4650
```
51+
#### Display all resources that contain the string `pertrytimeout` (case-insensitive), but do not contain `timeout`.
52+
53+
```shell
54+
< some-config.yaml | kubectl grep -r pertrytimeout -i | kubectl grep -v -r timeout
55+
```

0 commit comments

Comments
 (0)