In my bash script I want to save the output of a cat command in a variable.I do the following:
it keeps returning error.why is that?Code:var1=`cat outtemp | sed '1d' ` echo $var1
the error is
var1=12866: Command not found.
var1: Undefined variable.