Wiki source for CommandXgrep


Show raw source

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


====Name====
**xgrep** Find patterns in XML files


====Synopsis====
xgrep expr [files]

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



====Description====

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.

Example:
%%(shell)
xgrep '//foo' *.xml
%%


====Return Value====
Returns 0 if the command executed successfully, 1 if there was an error.
----
[[Commands]]
[[CategoryCommands]]

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