Last active
April 29, 2019 17:02
-
-
Save zagorulkinde/bf123a922e27e8e18a20132b1107a015 to your computer and use it in GitHub Desktop.
Sum values in some column using awk (Find total installed RAM memory)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sudo dmidecode -t memory | grep Size: | sed -e 's/Size://g' | sed -e 's/ MB//g' | awk '{sum += $1} END {print sum}' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment