I have a script that prints RAM total memory in gigabytes.
Here is the script:
echo "scale=2; $(sudo awk '/MemTotal/ {print , $2}' /proc/meminfo ) / 1024^2" | bc
and the output of this script is: 11.61
I want to add a string so that output of this script will be something like:
Memory: 11.61GB
How can I do that ?
sudojust to read from/proc/meminfo.