From 77cc3a7ffd430486e856788dd89842b05712b927 Mon Sep 17 00:00:00 2001 From: Thomas Voss Date: Wed, 17 Jan 2024 17:05:33 +0100 Subject: Add another example to the README --- README.md | 10 ++++++++++ 1 file changed, 10 insertions(+) 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 `` tags with the attribute `data-attr` in a Git repo + +```sh +git grab 'x/]*>/ g/data-attr/' '*.html' +``` + +1) Select all tags matching `` +2) Filter out tags without `data-attr` + + ## Additional Options The Grab utility has a few options that may be helpful for your usecase. -- cgit v1.2.3