aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Voss <thomas.voss@humanwave.nl> 2024-01-17 17:05:33 +0100
committerThomas Voss <thomas.voss@humanwave.nl> 2024-01-17 17:05:33 +0100
commit77cc3a7ffd430486e856788dd89842b05712b927 (patch)
tree6817207523ec64f838ebb408cf4243b21c2f5019
parent79d872a0d9f6e48825645b8cf80d947938d9c8b1 (diff)
Add another example to the README
-rw-r--r--README.md10
1 files changed, 10 insertions, 0 deletions
diff --git a/README.md b/README.md
index 52b9b96..94eb258 100644
--- a/README.md
+++ b/README.md
@@ -105,6 +105,16 @@ grab 'x/^flags.*/ x/\w+/ v/flags/' /proc/cpuinfo \
3) Filter out the word ‘flags’: `v/flags/`
+### Fomd `<my-tag>` tags with the attribute `data-attr` in a Git repo
+
+```sh
+git grab 'x/<my-tag[^>]*>/ g/data-attr/' '*.html'
+```
+
+1) Select all tags matching `<my-tag>`
+2) Filter out tags without `data-attr`
+
+
## Additional Options
The Grab utility has a few options that may be helpful for your usecase.