Fragile AWK Parsing #4

Closed
opened 2026-02-02 15:19:27 -05:00 by jared · 1 comment
Owner

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.

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.
Author
Owner

Converted to bash with regex

Converted to bash with regex
jared closed this issue 2026-02-02 15:52:30 -05:00
Sign in to join this conversation.
No Label
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: LotusGuild/proxDoc#4