There are two ways:
myvar=`cat /etc/motd`
myvar=$(cat /etc/motd)
Choose either then then try this:
echo $myvar
We'll email a 6-digit code to verify your comment and notify you of replies.
Comments