in reply to grabbing dmidecode memory data - there's got to be a better way
While this may not work for the full range of output in your particular case, maybe something like: dmidecode | perl -e 'undef $/;for (split /(?<=\n)\n+/, <STDIN>) {print if /RAM socket/ && !/Not Installed/}' would work. Keep it simple.
#11929 First ask yourself `How would I do this without a computer?' Then have the computer do it the same way.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: grabbing dmidecode memory data - there's got to be a better way
by Tommy (Chaplain) on Dec 28, 2012 at 19:31 UTC | |
by kennethk (Abbot) on Dec 28, 2012 at 19:41 UTC | |
by Tommy (Chaplain) on Dec 28, 2012 at 19:54 UTC |