saving result of command in variable
saving the version of java in a variable
result=`java -version`;
echo $result;
the result of the command java -version is not copied to the result variable.
Can anyone please help me in saving the result java -version into variable result
|