Fragile AWK Parsing #4
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
dmidecode -t memory | awk '
/Memory Device/,/^$/ {
if (/Size:/ && !/No Module Installed/) {
Bug: This AWK script is fragile and depends on specific dmidecode output format. Different BIOS versions format differently.
Converted to bash with regex