]> git.ipfire.org Git - thirdparty/util-linux.git/commit
lsmem: add --split
authorKarel Zak <kzak@redhat.com>
Fri, 20 Oct 2017 10:31:09 +0000 (12:31 +0200)
committerKarel Zak <kzak@redhat.com>
Fri, 20 Oct 2017 10:37:04 +0000 (12:37 +0200)
commitd12e945dbf7758e43ec4aaadd0c8c28c1269236e
treea0aecdad06053c8e857e425518b711b709cd8551
parent87a24d85f5fcd7c48137d67067a3ea8c997833de
lsmem: add --split

Now the way how lsmem lists memory ranges is affected by used output
columns.  It makes it very difficult to use in scripts where you want
to use for example only one column

ranges=$(lsmem -oRANGE)

and in this case all is merged to the one (or two) huge ranges and all
attributes are ignored. The --split allows to control this behavior

ranges=$(lsmem -oRANGE --split=STATE,ZONES)

forces lsmem to list ranges by STATE and ZONES differences.

Signed-off-by: Karel Zak <kzak@redhat.com>
sys-utils/chmem.8
sys-utils/lsmem.1
sys-utils/lsmem.c