I don't have a Linux+ZFS box at hand to test that particular endpoint, but some values get exposed via sysctl, so you might be able extract things that way.
If you're stuck with pseudo-files in /proc, sadly each one seems to have its own representation.
If a grep does the job, and you only expect one result, you can bail early with --max-count=1 to save parsing the rest of the file. Or you can use #awk if you only want a value from a key/value pair, something like
@mwl
I don't have a Linux+ZFS box at hand to test that particular endpoint, but some values get exposed via sysctl, so you might be able extract things that way.
If you're stuck with pseudo-files in /proc, sadly each one seems to have its own representation.
If a grep does the job, and you only expect one result, you can bail early with --max-count=1 to save parsing the rest of the file. Or you can use #awk if you only want a value from a key/value pair, something like
$ awk -F: '$1 ~ /size/{print $2; exit}' /proc/spl/kstat/zfs/arcstats