sputnick-dev / saxon-lint

XPath3/XQuery 3.0/XSLT 2.0 cross-platform command line tool
38 stars 2 forks source link

output filename #2

Closed thadudexx closed 9 years ago

thadudexx commented 9 years ago

is there a way to additionally output the file name when searching in multiple files?

sputnick-dev commented 9 years ago
for xml in *.xml; saxon-lint --xpath '/foo/bar' | grep -q . && echo "$xml found"; done