Subject: | xml_grep: want to print both filename and match |
I use xml_grep v0.9, part of XML::Twig v3.52.
I want to extract some matches from a bunch of HTML files. This works fine:
perl -S xml_grep --html --text --root 'div[@class=~/country|name/]' *.html
But I also want to print the file name.
grep has such option -h. However xml_grep's --file option prints ONLY the file name and conflicts with the --text option.