Hi
I am new to scripting.... i want to write a simple script file that executes the following command `java -version`.... i have to read the output given by this command inside my script....
var_name=`java -version`
echo $var_name
just displays java -version
i want the output of java -version command
what should i do