Hello All,
I am trying to get the value "node01_mymachine" and disregard the rest of the returned string (command ran*) from myscript.sh
$ myscript.sh GetNodeName
node01_mymachine
Command ran successfully.
If I called from another script like this:
anyprocess=`myscript.sh GetNodeName`
echo "My node name is " $anyprocess " test"
The output is as follows:
My node name is node01_mymachine Command ran successfully. test
How do i extract "node01_mymachine" from the whole returned value?