My JAVA code output looks like below.
Name="John"
Age="23"
Gender="Male"
Phone="+123 456 789"
..
..
I want to use above java code output as variables within the shell-script without writing any intermediate file. I'm trying to get the variables using below command inside Myscript.sh
JAVA_OUTPUT=`java -cp ojdbc6.jar:. javaClassFile args`
echo $JAVA_OUTPUT
But I'm unable to set the java output as variables within shell-script