Hello
I'm trying to assign the line below to a variable, but I can't find the right syntax to do so.
Code:
echo $RESULT1 | awk '{print $ARG1"cm is equivalent to "$1 / 2.54"in"}'
Here is the line I tried:
Code:
DISPLAY=$(echo $RESULT1 | awk '{print $ARG1"cm is equivalent to "$1 / 2.54"in"}')
But it doesn't work.
Any help is greatly appreciated.