Use backtick `` to execute the command and store the result in a variable.
In reply to Re: system command and formatting by lakshmananindia in thread system command and formatting by sugar