aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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.