diff options
Diffstat (limited to 'README.md')
-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. |