I think you’re not the only one who doesn’t know about the “-l” flag to listattr.
The result is of course not going to look anything like your picture, but you could fix that up with an awk script or something. Like …
function printline () {
if (rp[“name”])
print rp[“name”], rp[“wphone”], rp[“email”], rp[“company”]
split("", rp)
}
/^File:/ {
printline()
}
$3 ~ /META:/ { # “META:wphone” – in quotes, which is some extra trouble
k = substr($3, 7, length($3) - 7)
v = $4
for (i = 5, $i, ++i) {
v = v " " $i
rp[k] = v
}
END {
printline()
}
listattr -l * | awk -f awkfilename
That’s somewhat rudimentary and not 100% reliable, but you probably have a more specific idea in mind anyway.