[shell] How to store an output of shell script to a variable in Unix?