How can I save the result from qconsole to output file. The output.txt will has name uri in each line below. I have over thousand of documents.
Caltech.xml
CGU.xml
GMU.xml
Hopkins.xml
Georgetown.xml
....
let $uris:= cts:uris(
(),
(),
cts:and-query(( cts:collection-query("/Universities/")))
)
let $quote:=
for $u in $uris
return
fn:substring-after($u,"/Universities/")
let $output:=
text {
fn:concat(
fn:string-join(($quote),","),
"
"
)
}
return xdmp:save(fn:concat("/09122018/output.txt") ,$output)