in reply to system command and formatting

I need to save it to a variable

Use backtick `` to execute the command and store the result in a variable.

Replies are listed 'Best First'.
A reply falls below the community's threshold of quality. You may see it by logging in.