I am trying to store the output from a command in Bash in a variable, but instead of storing the output it is being interpreted as a command and run. That is not what I want.
tmp="$($line | awk '{print $1}')" This runs the output from awk as a command.
echo $line | awk '{print $1}' This prints out the output I want to store in the variable.
How can I get the output from the second line stored in a variable?