This is a script that I'm using:
MOREF='sudo run command against $VAR1 | grep name | cut -c7-'
When I execute it and pass the required arguments, there is no output coming out. But if I execute it within the $MOREF variable, I do get the output. I just want to get the results of the command, save it to a variable and then print it out on the screen.