ctubbsii commented on issue #3446: URL: https://github.com/apache/accumulo/issues/3446#issuecomment-1584862651
For what it's worth, one alternative would be to use jshell instead of our shell to do scripting. It's much more powerful and conveniently not limited to what we have implemented in our shell: ```bash user@hostname$ $ACCUMULO_HOME/bin/accumulo jshell Preparing JShell for Apache Accumulo Use 'client' to interact with Accumulo | Welcome to JShell -- Version 11.0.19 | For an introduction type: /help intro jshell> client.tableOperations().list().stream().filter(t -> t != null).forEach(System.out::println) accumulo.metadata accumulo.root jshell> ``` Can also script it so you can get the output in bash: ```bash user@hostname$ $ACCUMULO_HOME/bin/accumulo jshell -s <(echo 'client.tableOperations().list().stream().filter(t -> t != null).forEach(System.out::println)'; echo '/exit';) | tail -n +5 ``` (the `tail -n +5` is because we print some informative stuff when we create the client... could maybe improve that in future to be more silent when jshell is silent) -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
