q, jq, xq, yq

The programs q, jq, xq and yq allow to query data stored in files of different formats. The following table gives an overview of their applications:

Program Application Query syntax
q DSV files SQL-like
jq JSON files XPath-like
xq XML files XPath-like
yq YAML files XPath-like

Although they have related fields of application, q differs a lot from the other programs’ query syntax. This is explained by DSV’s list structure and the others’ tree structure.