I searching for a efficient and general way to get all tags of all Qubes. The best thing I came up which is this ugly for
loop.
for vm in $(qvm-ls --raw-list); do
TAGS+=$'\n'
TAGS+=$"$(qvm-tags "${vm}")"
done
TAGS=$"$(printf '%s' "${TAGS}" | sort -u)"
Furthermore I noticed that qvm-ls --raw-data -O=tags
produces unreadable output. So this falls flat for now too.
My current loop solution unfortunately takes rather log to compute. Is there a more efficient and general way to do this?