There are two ways:
myvar=`cat /etc/motd`
myvar=$(cat /etc/motd)
Choose either then then try this:
echo $myvar
What's next? verify your email address for reply notifications!
Comments