diff options
author | Thomas Voss <thomas.voss@humanwave.nl> | 2024-01-17 17:05:33 +0100 |
---|---|---|
committer | Thomas Voss <thomas.voss@humanwave.nl> | 2024-01-17 17:05:33 +0100 |
commit | 77cc3a7ffd430486e856788dd89842b05712b927 (patch) | |
tree | 6817207523ec64f838ebb408cf4243b21c2f5019 | |
parent | 79d872a0d9f6e48825645b8cf80d947938d9c8b1 (diff) |
Add another example to the README
-rw-r--r-- | README.md | 10 |
1 files changed, 10 insertions, 0 deletions
@@ -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. |