Wiki source for CommandXgrep

Show raw source

======Command xgrep======

**xgrep** Find patterns in XML files

xgrep expr [files]

||expr||an XPath expression to search||
||[files] ||List of files to search||


xgrep parses each xml file given and if it contains a node which matches the xpath expression (expr) prints the filename of the matching file.

xgrep '//foo' *.xml

====Return Value====
Returns 0 if the command executed successfully, 1 if there was an error.

Valid XHTML :: Valid CSS: :: Powered by WikkaWiki