I am a bash/shell script noob and trying to do a small script
var=$(someCommand $param1 $param2 | head -2 | tail -1)
echo $var
I am hoping that I will capture the output in var which never works. What could I be doing wrong?
I am a bash/shell script noob and trying to do a small script
var=$(someCommand $param1 $param2 | head -2 | tail -1)
echo $var
I am hoping that I will capture the output in var which never works. What could I be doing wrong?