xq icon indicating copy to clipboard operation
xq copied to clipboard

Allow "raw" output, not wrapped in "<results>"

Open bkmeneguello opened this issue 6 years ago • 1 comments

When ... | xq "//some/node/text()" the output is:

<results>
  <result>sometext</result>
</results>

Should exist an option, like -r/--raw to output text only.

This is important because it prevents piping the output directly to the next command

bkmeneguello avatar Nov 06 '19 17:11 bkmeneguello

This pull request seems to do that

nozhT avatar May 25 '20 02:05 nozhT