Just a thought: instead of cat you may try
printf and format every line of the message accordingly. For example, the OS line should be given by
Code:
printf " * %-16s%-42s*\n" "OS:" "$OSRELASE"
An additional note: to retrieve the OS field, the "cat /etc/*release" is not a strong method. For example on my OpenSuse I have two files:
Code:
$ ls /etc/*release
/etc/lsb-release /etc/SuSE-release
where the first line of the first file is
Code:
LSB_VERSION="core-2.0-noarch:core-3.2-noarch:core-2.0-ia32:core-3.2-ia32"
maybe not what you want. You can try with the following command, which is available on most linux distributions nowadays:
Moreover take in mind that on some systems the file is not called something-release, but something-version.