I have a Java program that outputs table names like so:
TABLE_EXAMPLE1
TABLE_EXAMPLE2
TABLE_EXAMPLE3
How can I assign the whole output as a variable in my bash shell so that I can continue to work with the table names? Ideally, I'd like to be able to create an array of table names from the output while suppressing the output from my Java program. In other words, I don't want my Java program to print out the output, but rather I'd like it stored in a bash variable.